Submission #79650


ソースコード

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
27
28
29
30
#include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
#include<numeric>
#include<limits.h>
#include<string>
#include<queue>
#include<stack>
#include<deque>
#include<set>
#include<map>
using namespace std;
int main(){
int a,b,d;
char c;
cin>>a>>b>>c;
if(c=='&'){
d=a&b;
}else if(c=='|'){
d=a|b;
}else if(c=='^'){
d=a^b;
}else if(c=='<'){
d=a<<b;
}else if(c=='>'){
d=a>>b;
}
cout<<d<<"\n";
}

ステータス

項目 データ
問題 0572 - びっとえんざん!!
ユーザー名 e2403
投稿日時 2024-07-09 17:44:23
言語 C++17
状態 Accepted
得点 1
ソースコード長 519 Byte
最大実行時間 27 ms
最大メモリ使用量 628 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 24 ms 600 KB
1
input02 AC 18 ms 444 KB
1
input03 AC 22 ms 412 KB
1
input04 AC 20 ms 512 KB
1
input05 AC 25 ms 612 KB
1
input06 AC 18 ms 456 KB
1
input07 AC 18 ms 428 KB
1
input08 AC 27 ms 404 KB
1
input09 AC 15 ms 628 KB
1