Submission #10277


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main() {
int a,b;
char c;
int d=0;
scanf(" %d %d %c",&a,&b,&c);
if(c=='&')d=a&b;
if(c=='|')d=a|b;
if(c=='^')d=a^b;
if(c=='<')d=a<<b;
if(c=='>')d=a>>b;
cout << d << endl;
return 0;
}

ステータス

項目 データ
問題 0572 - びっとえんざん!!
ユーザー名 Xyca.
投稿日時 2016-11-11 23:19:32
言語 C++11
状態 Accepted
得点 1
ソースコード長 347 Byte
最大実行時間 26 ms
最大メモリ使用量 616 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 23 ms 480 KB
1
input02 AC 18 ms 460 KB
1
input03 AC 19 ms 576 KB
1
input04 AC 17 ms 432 KB
1
input05 AC 16 ms 540 KB
1
input06 AC 19 ms 528 KB
1
input07 AC 24 ms 508 KB
1
input08 AC 21 ms 616 KB
1
input09 AC 26 ms 600 KB
1