結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
cedretaber
|
| 提出日時 | 2020-04-14 16:07:09 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 1,000 ms |
| コード長 | 380 bytes |
| 記録 | |
| コンパイル時間 | 536 ms |
| コンパイル使用メモリ | 87,872 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-06 12:30:44 |
| 合計ジャッジ時間 | 1,812 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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