結果

問題 No.1026 OGAWA's New Keyboard
ユーザー QCFium
提出日時 2020-05-08 22:20:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 432 ms / 1,000 ms
コード長 296 bytes
コンパイル時間 1,621 ms
コンパイル使用メモリ 165,332 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-16 05:06:18
合計ジャッジ時間 3,097 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

int ri() {
	int n;
	scanf("%d", &n);
	return n;
}

int main() {
	int n = ri();
	std::string res;
	for (int i = 0; i < n; i++) {
		int t = ri();
		char s[2];
		scanf("%s", s);
		res.insert(t ? res.begin() : res.end(), s[0]);
	}
	printf("%s\n", res.c_str());
	return 0;
}
0