Submission #69129


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <bits/stdc++.h>
using namespace std;
int main(){
unsigned int a,b;
cin>>a>>b;
char c;
cin>>c;
if(c=='&'){
cout<<(a&b)<<"\n";
}else if(c=='|'){
cout<<(a|b)<<"\n";
}else if(c=='^'){
cout<<(a^b)<<"\n";
}else if(c=='<'){
cout<<(a<<b)<<"\n";
}else if(c=='>'){
cout<<(a>>b)<<"\n";
}
return(0);
}

ステータス

項目 データ
問題 0572 - びっとえんざん!!
ユーザー名 ei2122
投稿日時 2021-12-22 15:55:10
言語 C++11
状態 Accepted
得点 1
ソースコード長 403 Byte
最大実行時間 30 ms
最大メモリ使用量 608 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 24 ms 604 KB
1
input02 AC 23 ms 452 KB
1
input03 AC 24 ms 552 KB
1
input04 AC 14 ms 400 KB
1
input05 AC 21 ms 376 KB
1
input06 AC 14 ms 608 KB
1
input07 AC 22 ms 448 KB
1
input08 AC 30 ms 544 KB
1
input09 AC 23 ms 516 KB
1