Submission #56950


ソースコード

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>
#define INF 9223372036854775807LL
#define inf 1000000007
#define SYOU(x) setprecision(x+1)
#define abs(x,y) (max(x,y)-min(x,y))
#define lol long long
#define mp make_pair
#define fi first
#define se second
using namespace std;
int a,b;
signed main(){
cin.tie(0);
ios::sync_with_stdio(false);
int c,d=0,e=0,f=0,g=1,h=0;
char y;
cin >>a>>b>>y;
if(y=='&') cout <<(a&b);
else{ if(y=='|') cout <<(a|b);
else if(y=='^') cout <<(a^b);
else if(y=='<') cout <<(a<<b);
else cout <<(a>>b);
}
cout <<'\n';
return (0);
}

ステータス

項目 データ
問題 0572 - びっとえんざん!!
ユーザー名 ei1923
投稿日時 2019-12-06 16:18:40
言語 C++14
状態 Accepted
得点 1
ソースコード長 601 Byte
最大実行時間 26 ms
最大メモリ使用量 636 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 25 ms 476 KB
1
input02 AC 23 ms 432 KB
1
input03 AC 24 ms 384 KB
1
input04 AC 23 ms 596 KB
1
input05 AC 21 ms 556 KB
1
input06 AC 17 ms 636 KB
1
input07 AC 23 ms 588 KB
1
input08 AC 26 ms 536 KB
1
input09 AC 22 ms 624 KB
1