結果
問題 |
No.1026 OGAWA's New Keyboard
|
ユーザー |
![]() |
提出日時 | 2020-05-25 23:41:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 1,625 ms |
コンパイル使用メモリ | 169,264 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-13 02:22:17 |
合計ジャッジ時間 | 2,656 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; using Graph=vector<vector<pair<int,int>>>; #define INF 1000000000000000000 #define MOD 1000000007 int main(){ int N; cin>>N; vector<string> S(2); for(int i=0;i<N;i++){ int T; char c; cin>>T>>c; S.at(T).push_back(c); } reverse(S.at(1).begin(),S.at(1).end()); cout<<S.at(1)<<S.at(0)<<endl; }