题解 | #牛牛的线段#
牛牛的线段
https://www.nowcoder.com/practice/f72c56ed71664af082c921bf79861c85
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; cout<<(a-c)*(a-c)+(b-d)*(b-d); return 0; }
牛牛的线段
https://www.nowcoder.com/practice/f72c56ed71664af082c921bf79861c85
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c>>d; cout<<(a-c)*(a-c)+(b-d)*(b-d); return 0; }
相关推荐