結果

問題 No.201 yukicoderじゃんけん
ユーザー nak2yoshi
提出日時 2016-02-23 21:49:05
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 382 bytes
コンパイル時間 966 ms
コンパイル使用メモリ 116,096 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 03:01:52
合計ジャッジ時間 1,760 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio,
       std.conv,
       std.string,
       std.range,
       std.math,
       std.algorithm,
       std.bigint;

void main()
{
    string[] S, X;
    BigInt[] P;
    
    foreach (line; stdin.byLineCopy.map!split)
    {
        S ~= line[0];
        P ~= BigInt(line[1]);
        X ~= line[2];
    }
    (P[0] > P[1] ? S[0] : P[0] < P[1] ? S[1] : "-1").writeln;
}
0