結果

問題 No.1229 ラグビーの得点パターン
ユーザー kfieldkfield
提出日時 2020-10-25 23:55:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 76,272 KB
最終ジャッジ日時 2023-09-29 02:22:46
合計ジャッジ時間 3,959 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
70,984 KB
testcase_01 AC 77 ms
71,032 KB
testcase_02 AC 80 ms
75,984 KB
testcase_03 AC 84 ms
76,080 KB
testcase_04 AC 76 ms
71,328 KB
testcase_05 AC 75 ms
71,324 KB
testcase_06 AC 75 ms
71,076 KB
testcase_07 AC 75 ms
71,352 KB
testcase_08 AC 75 ms
71,464 KB
testcase_09 AC 76 ms
71,252 KB
testcase_10 AC 79 ms
75,472 KB
testcase_11 AC 80 ms
75,916 KB
testcase_12 AC 80 ms
76,028 KB
testcase_13 AC 80 ms
76,036 KB
testcase_14 AC 81 ms
76,164 KB
testcase_15 AC 82 ms
75,920 KB
testcase_16 AC 80 ms
76,100 KB
testcase_17 AC 81 ms
76,200 KB
testcase_18 AC 82 ms
76,044 KB
testcase_19 AC 80 ms
76,272 KB
testcase_20 AC 81 ms
75,972 KB
testcase_21 AC 80 ms
76,196 KB
testcase_22 AC 82 ms
76,068 KB
testcase_23 AC 81 ms
76,060 KB
testcase_24 AC 81 ms
75,992 KB
testcase_25 AC 80 ms
76,036 KB
testcase_26 AC 81 ms
76,020 KB
testcase_27 AC 82 ms
76,064 KB
testcase_28 AC 83 ms
76,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0

for i in range(n):
    for j in range(i+1):
        for k in range(n):
            if i*5 + j*2 + k*3 == n:
                ans += 1
if n == 0:
    ans = 1
print(ans)
0