1 solutions
-
0
其实,这道题来来去去就是 种情况,要么 是 , 是 ;要么是 是 , 是 ;要么是 是 , 是 ,其他的就都输出
NO
即可。Atcoder 的题记得换行!#include "iostream" using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5))cout<<"YES\n"; else cout<<"NO\n"; return 0; }
- 1
Information
- ID
- 17774
- Time
- 2000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 138
- Accepted
- 22
- Uploaded By