1 solutions
-
0
拿下!! #include <bits/stdc++.h> using namespace std; long long a,b,c; int main() { cin>>a>>b>>c; if(a!=b&&a!=c&&b!=c){ cout<<ab2+ac2+bc2; }
if(a==b&&a!=c&&b!=c) cout<<a*b*4+b*c*2; if(a!=b&&a==c&&b!=c) cout<<a*c*4+a*b*2; if(a!=b&&a!=c&&b==c) cout<<b*c*4+a*b*2; if(a==b&&b==c&&a==c) cout<<a*b*6; return 0;
}
- 1
Information
- ID
- 439
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 8
- Tags
- # Submissions
- 16
- Accepted
- 7
- Uploaded By