結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
|
提出日時 | 2016-09-15 16:56:01 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 599 bytes |
コンパイル時間 | 1,004 ms |
コンパイル使用メモリ | 129,540 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 04:24:54 |
合計ジャッジ時間 | 1,806 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
import std.algorithm, std.array, std.container, std.range, std.bitmanip; import std.numeric, std.math, std.bigint, std.random, core.bitop; import std.string, std.regex, std.conv, std.stdio, std.typecons; alias Tuple!(string, "name", string, "pt", string, "hand") set; void main() { auto sets = iota(2) .map!(_ => readln.split) .map!(rd => set(rd[0], rd[1], rd[2])).array; auto p1 = sets[0].pt.rightJustify(10001, '0'); auto p2 = sets[1].pt.rightJustify(10001, '0'); if (p1 > p2) writeln(sets[0].name); else if (p1 < p2) writeln(sets[1].name); else writeln(-1); }