結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
port_ssh
|
| 提出日時 | 2020-04-17 22:02:18 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
(最新)
TLE
(最初)
|
| 実行時間 | 853 ms / 1,000 ms |
| コード長 | 756 bytes |
| 記録 | |
| コンパイル時間 | 915 ms |
| コンパイル使用メモリ | 100,644 KB |
| 実行使用メモリ | 11,880 KB |
| 最終ジャッジ日時 | 2026-04-19 15:47:39 |
| 合計ジャッジ時間 | 3,908 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <numeric>
#include <string>
#include <map>
#include <stack>
using namespace std;
typedef long long int lli;
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
#define drept(soeji, start, n) for (int soeji = start; soeji > n; soeji--)
struct CS
{
int x;
string s;
};
int main(void)
{
string ans = "";
int N;
cin >> N;
CS *a;
a = new CS[N];
for (int i = 0; i < N; i++)
{
cin >> a[i].x >> a[i].s;
if (a[i].x == 0)
{
ans = ans + a[i].s;
}
else
{
ans = a[i].s + ans;
}
}
cout << ans << endl;
return 0;
}
port_ssh