题解 | 牛牛的线段

牛牛的线段

https://www.nowcoder.com/practice/f72c56ed71664af082c921bf79861c85

#include <stdio.h>

int main() {
    int a=0,b=0;
    int c=0,d=0;
    scanf("%d %d",&a,&b);
    scanf("%d %d",&c,&d);
    printf("%d",(a-c)*(a-c)+(b-d)*(b-d));
    return 0;
}

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务