結果

問題 No.1229 ラグビーの得点パターン
ユーザー O2MTO2MT
提出日時 2021-02-14 03:08:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 76,156 KB
最終ジャッジ日時 2023-09-28 12:42:46
合計ジャッジ時間 3,932 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
70,976 KB
testcase_01 AC 73 ms
71,260 KB
testcase_02 AC 74 ms
71,164 KB
testcase_03 AC 79 ms
76,156 KB
testcase_04 AC 72 ms
71,428 KB
testcase_05 AC 74 ms
71,048 KB
testcase_06 AC 74 ms
71,276 KB
testcase_07 AC 73 ms
71,256 KB
testcase_08 AC 73 ms
71,288 KB
testcase_09 AC 75 ms
71,164 KB
testcase_10 AC 74 ms
71,176 KB
testcase_11 AC 72 ms
71,432 KB
testcase_12 AC 74 ms
71,104 KB
testcase_13 AC 73 ms
71,192 KB
testcase_14 AC 75 ms
71,336 KB
testcase_15 AC 78 ms
75,532 KB
testcase_16 AC 78 ms
75,936 KB
testcase_17 AC 76 ms
76,000 KB
testcase_18 AC 75 ms
75,492 KB
testcase_19 AC 74 ms
75,760 KB
testcase_20 AC 76 ms
75,632 KB
testcase_21 AC 76 ms
75,632 KB
testcase_22 AC 76 ms
75,304 KB
testcase_23 AC 75 ms
75,588 KB
testcase_24 AC 75 ms
75,760 KB
testcase_25 AC 76 ms
75,568 KB
testcase_26 AC 78 ms
75,496 KB
testcase_27 AC 77 ms
75,656 KB
testcase_28 AC 77 ms
75,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for t in range(N//5+1):
    for c in range(t+1):
        for p in range(N//3+1):
            if 5*t+2*c+3*p == N:
                ans += 1

print(ans)
0