Submission #80870


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,one=0,two=0;
cin>>a>>b>>c;
if(a==1){
one++;
}else if(a==2){
two++;
}
if(b==1){
one++;
}else{
two++;
}
if(c==1){
one++;
}else{
two++;
}
if(one>two){
cout<<"1"<<endl;
}else{
cout<<"2"<<endl;
}
}

ステータス

項目 データ
問題 1420 - 3 つの整数
ユーザー名 ei2439
投稿日時 2024-09-02 16:25:57
言語 C++17
状態 Accepted
得点 100
ソースコード長 406 Byte
最大実行時間 49 ms
最大メモリ使用量 704 KB

セット

セット 得点 Cases
1 ALL 100 / 100 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01-01.txt AC 49 ms 476 KB
1
01-02.txt AC 34 ms 704 KB
1
01-03.txt AC 26 ms 544 KB
1
01-04.txt AC 17 ms 644 KB
1
01-05.txt AC 20 ms 620 KB
1
01-06.txt AC 25 ms 592 KB
1
sample-01.txt AC 18 ms 564 KB
1
sample-02.txt AC 19 ms 668 KB
1