题解 | #牛牛的线段#
牛牛的线段
https://www.nowcoder.com/practice/f72c56ed71664af082c921bf79861c85
#include <stdio.h> int main() { int a=0; int b=0; int c=0; int d=0; scanf("%d %d %d %d",&a,&b,&c,&d); int ret=(c-a)*(c-a)+(d-b)*(d-b); printf("%d",ret); return 0; }