結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
r.suzuki
|
| 提出日時 | 2015-12-27 17:04:46 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 124 ms / 5,000 ms |
| + 305µs | |
| コード長 | 658 bytes |
| 記録 | |
| コンパイル時間 | 1,265 ms |
| コンパイル使用メモリ | 84,444 KB |
| 実行使用メモリ | 48,444 KB |
| 最終ジャッジ日時 | 2026-08-30 21:51:10 |
| 合計ジャッジ時間 | 4,301 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
import java.math.BigInteger;
class Yuki {
String name;
BigInteger yurufuwa;
String hand;
Yuki(String s1,BigInteger b,String s2){
this.name = s1;
this.yurufuwa = b;
this.hand = s2;
}
String judge(Yuki y) {
int i = this.yurufuwa.compareTo(y.yurufuwa);
if (i == 0) {
return "-1";
} else {
return i > 0 ? this.name : y.name;
}
}
}
class No_201 {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
Yuki y1 = new Yuki(sc.next(),sc.nextBigInteger(),sc.next());
Yuki y2 = new Yuki(sc.next(),sc.nextBigInteger(),sc.next());
System.out.println(y1.judge(y2));
sc.close();
}
}
r.suzuki