結果
| 問題 | 
                            No.1026 OGAWA's New Keyboard
                             | 
                    
| ユーザー | 
                             chocorusk
                         | 
                    
| 提出日時 | 2020-04-14 16:20:47 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 54 ms / 1,000 ms | 
| コード長 | 735 bytes | 
| コンパイル時間 | 1,742 ms | 
| コンパイル使用メモリ | 124,036 KB | 
| 最終ジャッジ日時 | 2025-01-09 18:43:29 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 21 | 
ソースコード
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#include <time.h>
#include <stack>
#include <array>
#define popcount __builtin_popcount
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
int main()
{
	int n;
	cin>>n;
	string s[2];
	for(int i=0; i<n; i++){
	    int t; char c;
	    cin>>t>>c;
	    s[t]+=c;
	}
	reverse(s[1].begin(), s[1].end());
	cout<<s[1]+s[0]<<endl;
	return 0;
}
            
            
            
        
            
chocorusk