結果

問題 No.542 1円玉と5円玉
ユーザー tookunn_1213tookunn_1213
提出日時 2017-07-14 22:25:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 250 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 75,776 KB
最終ジャッジ日時 2024-04-16 20:09:21
合計ジャッジ時間 1,831 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
60,288 KB
testcase_01 AC 48 ms
59,136 KB
testcase_02 AC 51 ms
61,568 KB
testcase_03 AC 51 ms
60,032 KB
testcase_04 AC 52 ms
60,032 KB
testcase_05 AC 62 ms
62,848 KB
testcase_06 AC 64 ms
63,104 KB
testcase_07 AC 70 ms
63,232 KB
testcase_08 AC 82 ms
65,024 KB
testcase_09 AC 86 ms
66,048 KB
testcase_10 AC 69 ms
75,648 KB
testcase_11 AC 53 ms
60,160 KB
testcase_12 AC 250 ms
75,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())

for i in range(1,5501):
	flag = False
	for a in range(A+1):
		for b in range(B+1):
			if i == a + b * 5:
				print(i)
				flag = True
				break
		if flag:
			break
0