結果
問題 |
No.1026 OGAWA's New Keyboard
|
ユーザー |
|
提出日時 | 2021-03-03 17:35:53 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 53 ms / 1,000 ms |
コード長 | 281 bytes |
コンパイル時間 | 1,630 ms |
コンパイル使用メモリ | 168,804 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 06:39:20 |
合計ジャッジ時間 | 3,048 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n,t; cin >> n; string ss; vector<string> s(2); for(int i = 0;i < n;i++){ cin >> t >> ss; s[t] += ss; } reverse(s[1].begin(),s[1].end()); cout << s[1] <<s[0] << endl; }