結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-08-25 17:23:18 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 843 ms / 1,000 ms |
| コード長 | 540 bytes |
| 記録 | |
| コンパイル時間 | 637 ms |
| コンパイル使用メモリ | 118,280 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-02 06:59:15 |
| 合計ジャッジ時間 | 2,932 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
#include<iostream>
#include<map>
#include<vector>
#include <algorithm>
#include<math.h>
#include <iomanip>
#include<set>
#include <numeric>
using namespace std;
int main()
{
int n;
string s = "", temp = "";
cin >> n;
for (int i = 0; i < n; i++){
char c;
int t;
cin >> t >> c;
if (t == 0) temp += c;
else{
if (temp.size()){
s += temp;
temp = "";
}
s = c + s;
}
}
s += temp;
cout << s << endl;
}
kpinkcat