Submission #79637


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
char c;
cin >>a>>b>>c;
if(c == '&')cout <<(a&b)<<"\n";
if(c == '|')cout <<(a|b)<<"\n";
if(c == '^')cout <<(a^b)<<"\n";
if(c == '<')cout <<(a<<b)<<"\n";
if(c == '>')cout <<(a>>b)<<"\n";
}

ステータス

項目 データ
問題 0572 - びっとえんざん!!
ユーザー名 ei2332
投稿日時 2024-07-09 17:42:07
言語 C++17
状態 Accepted
得点 1
ソースコード長 295 Byte
最大実行時間 27 ms
最大メモリ使用量 660 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input01 AC 17 ms 604 KB
1
input02 AC 21 ms 576 KB
1
input03 AC 22 ms 552 KB
1
input04 AC 25 ms 524 KB
1
input05 AC 19 ms 372 KB
1
input06 AC 19 ms 604 KB
1
input07 AC 20 ms 452 KB
1
input08 AC 27 ms 300 KB
1
input09 AC 20 ms 660 KB
1