結果

問題 No.201 yukicoderじゃんけん
ユーザー bellangeldindonbellangeldindon
提出日時 2019-05-10 11:20:54
言語 Python2
(2.7.18)
結果
AC  
実行時間 28 ms / 5,000 ms
コード長 397 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,676 KB
実行使用メモリ 6,316 KB
最終ジャッジ日時 2023-09-14 17:52:15
合計ジャッジ時間 1,687 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,908 KB
testcase_01 AC 12 ms
5,948 KB
testcase_02 AC 11 ms
5,888 KB
testcase_03 AC 11 ms
5,832 KB
testcase_04 AC 11 ms
5,836 KB
testcase_05 AC 12 ms
6,016 KB
testcase_06 AC 11 ms
6,068 KB
testcase_07 AC 12 ms
5,868 KB
testcase_08 AC 14 ms
5,856 KB
testcase_09 AC 13 ms
5,868 KB
testcase_10 AC 11 ms
5,868 KB
testcase_11 AC 13 ms
5,996 KB
testcase_12 AC 13 ms
5,904 KB
testcase_13 AC 13 ms
5,908 KB
testcase_14 AC 11 ms
5,952 KB
testcase_15 AC 12 ms
5,876 KB
testcase_16 AC 12 ms
6,172 KB
testcase_17 AC 12 ms
6,316 KB
testcase_18 AC 28 ms
6,312 KB
testcase_19 AC 22 ms
6,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0