結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2019-05-10 11:20:54 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 40 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 6,656 KB |
最終ジャッジ日時 | 2024-07-02 00:56:57 |
合計ジャッジ時間 | 1,095 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
def judge(name1, point1, name2, point2): if len(point1) > len(point2): return name1 if len(point1) < len(point2): return name2 for i in range(0, len(point1)): if int(point1[i]) > int(point2[i]): return name1 if int(point1[i]) < int(point2[i]): return name2 return '-1' name1, point1, h = raw_input().split() name2, point2, h = raw_input().split() print judge(name1, point1, name2, point2)