結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
port_ssh
|
| 提出日時 | 2020-04-17 22:02:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 756 bytes |
| コンパイル時間 | 803 ms |
| コンパイル使用メモリ | 85,288 KB |
| 実行使用メモリ | 11,740 KB |
| 最終ジャッジ日時 | 2024-10-03 12:56:47 |
| 合計ジャッジ時間 | 5,969 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 TLE * 1 |
| other | AC * 20 TLE * 1 |
ソースコード
#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