Submission #19195


ソースコード

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-06-09 17:19:19
言語 C
状態 Accepted
得点 1
ソースコード長 369 Byte
最大実行時間 17 ms
最大メモリ使用量 496 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 9 ms 380 KB
1
input02 AC 13 ms 408 KB
1
input03 AC 10 ms 372 KB
1
input04 AC 9 ms 392 KB
1
input05 AC 15 ms 440 KB
1
input06 AC 17 ms 496 KB
1
input07 AC 13 ms 448 KB
1
input08 AC 15 ms 472 KB
1
input09 AC 10 ms 428 KB
1