結果

問題 No.1229 ラグビーの得点パターン
ユーザー tikitaka1201tikitaka1201
提出日時 2020-09-19 18:14:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 939 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 76,440 KB
最終ジャッジ日時 2023-09-05 22:51:12
合計ジャッジ時間 4,392 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
76,192 KB
testcase_01 AC 67 ms
76,324 KB
testcase_02 AC 68 ms
76,196 KB
testcase_03 AC 68 ms
75,948 KB
testcase_04 AC 69 ms
76,400 KB
testcase_05 AC 67 ms
76,356 KB
testcase_06 AC 65 ms
76,192 KB
testcase_07 AC 68 ms
76,192 KB
testcase_08 AC 68 ms
76,412 KB
testcase_09 AC 68 ms
76,148 KB
testcase_10 AC 66 ms
76,308 KB
testcase_11 AC 67 ms
76,352 KB
testcase_12 AC 68 ms
76,140 KB
testcase_13 AC 69 ms
76,332 KB
testcase_14 AC 70 ms
76,272 KB
testcase_15 AC 70 ms
76,248 KB
testcase_16 AC 71 ms
76,188 KB
testcase_17 AC 70 ms
76,440 KB
testcase_18 AC 69 ms
76,296 KB
testcase_19 AC 71 ms
76,316 KB
testcase_20 AC 70 ms
76,276 KB
testcase_21 AC 69 ms
76,280 KB
testcase_22 AC 68 ms
76,276 KB
testcase_23 AC 68 ms
76,332 KB
testcase_24 AC 71 ms
76,180 KB
testcase_25 AC 69 ms
76,440 KB
testcase_26 AC 71 ms
76,156 KB
testcase_27 AC 70 ms
75,948 KB
testcase_28 AC 70 ms
76,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(ans)
0