Submission #00264


ソースコード

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<string>
using namespace std;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n,a,b,ans,data[101];
string h;
cin>>n;
for(int i=0;i<n;i++){
cin>>h;
cin>>a>>b;
if(h=="&") ans=a&b;
if(h=="|") ans=a|b;
data[i]=ans;
}
for(int i=0;i<n-1;i++){
cout<<data[i]<<" ";
}
cout<<data[n-1]<<endl;
return 0;
}

ステータス

項目 データ
問題 0009 - 論理的な英雄王
ユーザー名 ei1709
投稿日時 2017-11-06 18:28:13
言語 C++
状態 Wrong Answer
得点 0
ソースコード長 398 Byte
最大実行時間 25 ms
最大メモリ使用量 608 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01.txt WA 20 ms 480 KB
1
Input02.txt AC 22 ms 436 KB
1
Input03.txt AC 19 ms 520 KB
1
Input04.txt AC 25 ms 608 KB
1
Input05.txt AC 18 ms 436 KB
1