Submission #00176


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include<bits/stdc++.h>
using namespace std;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n;
string a;
cin >> n;
int s,f;
int ans[n];
for(int i=0;i<n;i++){
cin >> a;
if(a=="<<"){
cin >> s >> f;
ans[i]=s << f;
}else if(a==">>"){
cin >> s >> f;
ans[i]=s >> f;
}
}
for(int i=0;i<n;i++){
cout << ans[i] << endl;
}
return 0;
}

ステータス

項目 データ
問題 0011 - 論理的な英雄王 3rd
ユーザー名 HTNei1730
投稿日時 2017-11-06 18:16:47
言語 C++11
状態 Accepted
得点 11
ソースコード長 425 Byte
最大実行時間 23 ms
最大メモリ使用量 524 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Input01.txt AC 23 ms 480 KB
1
Input02.txt AC 17 ms 436 KB
1
Input03.txt AC 19 ms 524 KB
1
Input04.txt AC 23 ms 488 KB
1
Input05.txt AC 13 ms 444 KB
1