結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
diginatu
|
| 提出日時 | 2015-05-03 23:36:22 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 475 bytes |
| コンパイル時間 | 972 ms |
| コンパイル使用メモリ | 110,080 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 02:40:20 |
| 合計ジャッジ時間 | 1,827 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
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);
}
}
diginatu