結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
cedretaber
|
| 提出日時 | 2020-04-14 16:07:09 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 1,000 ms |
| + 615µs | |
| コード長 | 380 bytes |
| 記録 | |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-26 21:46:17 |
| 合計ジャッジ時間 | 2,396 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto N = readln.chomp.to!int;
char[] a, b;
size_t i;
foreach (_; 0..N) {
auto ts = readln;
if (ts[0] == '0') {
a ~= ts[2];
} else {
b ~= ts[2];
}
}
b.reverse();
writeln(b ~ a);
}
cedretaber