結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-07-25 00:01:26 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 443 bytes |
| 記録 | |
| コンパイル時間 | 1,341 ms |
| コンパイル使用メモリ | 96,868 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-25 23:23:56 |
| 合計ジャッジ時間 | 4,321 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 TLE * 1 |
| other | AC * 21 |
ソースコード
#pragma GCC optimize("Ofast")
#include<iostream>
#include<stdio.h>
#include<algorithm>
#include<vector>
#include<string.h>
#include<math.h>
#include<map>
#include<iomanip>
#include<queue>
using namespace std;
int main(){
int n;
cin >> n;
string s="";
string temp="";
for(int i=0;i<n;i++){
int a;
cin >> a;
char c;
cin >> c;
if(a==0){
s+=c;
}else{
temp=s;
s=c;
s+=temp;
}
}
cout << s << endl;
return 0;
}
mmn15277198