Submission #18367


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
#include<stdio.h>
int main(){
int denma,anma,xvideos;
char meron;
scanf("%d %d %c",&denma,&anma,&meron);
if(meron=='&')xvideos=denma&anma;
else if(meron=='|')xvideos=denma|anma;
else if(meron=='^')xvideos=denma^anma;
else if(meron=='<')xvideos=denma<<anma;
else if(meron=='>')xvideos=denma>>anma;
printf("%d\n",xvideos);
return 0;
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 20 ms 380 KB
1
input02 AC 9 ms 308 KB
1
input03 AC 29 ms 336 KB
1
input04 AC 11 ms 384 KB
1
input05 AC 10 ms 436 KB
1
input06 AC 12 ms 492 KB
1
input07 AC 10 ms 320 KB
1
input08 AC 13 ms 464 KB
1
input09 AC 12 ms 520 KB
1