ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#168538 | #1216. 判断三角形类型 | luojianwei2216 | 100 | 0ms | 1196kb | C++ | 221b | 2023-02-04 13:52:24 | 2023-02-04 13:52:26 |
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c;
cin >> a >> b >> c;
if(a == b && b == c) cout << 1;
else if(a == b || b == c || a == c) cout << 2;
else cout << 3;
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 33
Accepted
time: 0ms
memory: 1196kb
input:
8 8 9
output:
2
result:
ok single line: '2'
Test #2:
score: 33
Accepted
time: 0ms
memory: 1196kb
input:
8 8 8
output:
1
result:
ok single line: '1'
Test #3:
score: 33
Accepted
time: 0ms
memory: 1196kb
input:
7 8 9
output:
3
result:
ok single line: '3'