結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-07-25 00:04:00 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 1,000 ms |
| コード長 | 466 bytes |
| コンパイル時間 | 1,069 ms |
| コンパイル使用メモリ | 98,280 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-25 23:26:31 |
| 合計ジャッジ時間 | 1,997 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| 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 t="";
for(int i=0;i<n;i++){
int a;
cin >> a;
char c;
cin >> c;
if(a==0){
s+=c;
}else{
t+=c;
}
}
reverse(t.begin(),t.end());
string ans=t+s;
cout << ans << endl;
return 0;
}
mmn15277198