結果

問題 No.542 1円玉と5円玉
ユーザー JunOnumaJunOnuma
提出日時 2017-07-18 10:19:41
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 6,132 KB
最終ジャッジ日時 2023-07-29 23:39:45
合計ジャッジ時間 900 ms
ジャッジサーバーID
(参考情報)
judge5 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,092 KB
testcase_01 AC 10 ms
5,952 KB
testcase_02 AC 11 ms
5,852 KB
testcase_03 AC 11 ms
6,028 KB
testcase_04 AC 11 ms
5,884 KB
testcase_05 AC 11 ms
5,988 KB
testcase_06 AC 11 ms
5,924 KB
testcase_07 AC 10 ms
5,848 KB
testcase_08 AC 10 ms
6,132 KB
testcase_09 AC 10 ms
5,888 KB
testcase_10 AC 10 ms
5,848 KB
testcase_11 AC 10 ms
5,932 KB
testcase_12 AC 11 ms
5,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, raw_input().split())
for i in range(b+1):
    if i == 0:
        s = 1
    else:
        s = 0
    if i == b:
        e = a
    else:
        e = min(4,a)
    for j in range(s,e+1):
        print i*5 + j
0