Submission #36430


ソースコード

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
#include <stdio.h>
#include <string.h>
int main(){
int a, b;
char c;
scanf("%d %d %c", &a, &b, &c);
if(c == '&'){
printf("%d\n", a & b);
}
else if(c == '|'){
printf("%d\n", a | b);
}
else if(c == '^'){
printf("%d\n", a ^ b);
}
else if(c == '<'){
printf("%d\n", a << b);
}
else {
printf("%d\n", a >> b);
}
return 0;
}

ステータス

項目 データ
問題 0572 - びっとえんざん!!
ユーザー名 r1825
投稿日時 2018-05-29 17:40:40
言語 C
状態 Accepted
得点 1
ソースコード長 408 Byte
最大実行時間 30 ms
最大メモリ使用量 516 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 27 ms 380 KB
1
input02 AC 17 ms 408 KB
1
input03 AC 27 ms 464 KB
1
input04 AC 21 ms 428 KB
1
input05 AC 20 ms 456 KB
1
input06 AC 22 ms 516 KB
1
input07 AC 15 ms 444 KB
1
input08 AC 22 ms 372 KB
1
input09 AC 30 ms 432 KB
1