結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
|
| 提出日時 | 2020-06-17 02:32:42 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 1,000 ms |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 1,253 ms |
| コンパイル使用メモリ | 214,040 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-10 18:36:16 |
| 合計ジャッジ時間 | 2,785 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long int;
using lc = complex<double>;
int main(void) {
constexpr ll MOD = 1e9 + 7;
constexpr double PI = acos(-1);
cout << fixed << setprecision(32);
cin.tie(0); ios::sync_with_stdio(false);
ll n;
cin >> n;
string s, t;
while(n--) {
ll x;
string ss;
cin >> x >> ss;
(x ? s : t) += ss[0];
}
reverse(s.begin(), s.end());
cout << s << t << endl;
}