結果

問題 No.201 yukicoderじゃんけん
コンテスト
ユーザー diginatu
提出日時 2015-05-03 23:36:22
言語 D
(dmd 2.112.0)
コンパイル:
dmd -fPIE -m64 -w -wi -O -release -inline -I/opt/dmd/src/druntime/import/ -I/opt/dmd/src/phobos -L-L/opt/dmd/linux/lib64/ -fPIC _filename_
実行:
./Main
結果
AC  
実行時間 5 ms / 5,000 ms
コード長 475 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 532 ms
コンパイル使用メモリ 93,248 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2026-03-05 06:30:33
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

void main() {
  auto buf = readln().strip().split();
  auto name1 = buf[0].to!string();
  auto point1 = buf[1].to!BigInt();
  auto buf2 = readln().strip().split();
  auto name2 = buf2[0].to!string();
  auto point2 = buf2[1].to!BigInt();

  if (point1 > point2) {
    writeln(name1);
  } else if(point2 > point1) {
    writeln(name2);
  } else {
    writeln(-1);
  }
}
0