Submission #27446


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<iostream>
#include<string>
using namespace std;
int main(){
int a,b;
string c;
cin>>a>>b>>c;
if(c=="&")cout<<(a & b)<<endl;
else if(c=="|")cout<<(a | b)<<endl;
else if(c=="^")cout<<(a ^ b)<<endl;
else if(c=="<")cout<<(a << b)<<endl;
else if(c==">")cout<<(a >> b)<<endl;
return(0);
}

ステータス

項目 データ
問題 0572 - びっとえんざん!!
ユーザー名 r1705
投稿日時 2017-10-02 19:06:14
言語 C++11
状態 Accepted
得点 1
ソースコード長 324 Byte
最大実行時間 47 ms
最大メモリ使用量 712 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 47 ms 480 KB
1
input02 AC 23 ms 712 KB
1
input03 AC 13 ms 560 KB
1
input04 AC 22 ms 664 KB
1
input05 AC 19 ms 512 KB
1
input06 AC 17 ms 488 KB
1
input07 AC 17 ms 460 KB
1
input08 AC 19 ms 436 KB
1
input09 AC 30 ms 412 KB
1