結果

問題 No.1229 ラグビーの得点パターン
ユーザー KudeKude
提出日時 2020-09-18 21:24:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 86,904 KB
実行使用メモリ 71,548 KB
最終ジャッジ日時 2023-09-04 09:34:43
合計ジャッジ時間 3,764 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,496 KB
testcase_01 AC 76 ms
71,324 KB
testcase_02 AC 77 ms
71,396 KB
testcase_03 AC 81 ms
71,268 KB
testcase_04 AC 76 ms
71,216 KB
testcase_05 AC 77 ms
71,176 KB
testcase_06 AC 76 ms
71,548 KB
testcase_07 AC 75 ms
71,360 KB
testcase_08 AC 74 ms
71,284 KB
testcase_09 AC 76 ms
71,324 KB
testcase_10 AC 76 ms
71,264 KB
testcase_11 AC 76 ms
71,472 KB
testcase_12 AC 78 ms
71,220 KB
testcase_13 AC 77 ms
71,492 KB
testcase_14 AC 77 ms
71,372 KB
testcase_15 AC 76 ms
71,508 KB
testcase_16 AC 76 ms
71,340 KB
testcase_17 AC 76 ms
71,188 KB
testcase_18 AC 76 ms
71,188 KB
testcase_19 AC 76 ms
71,172 KB
testcase_20 AC 76 ms
71,508 KB
testcase_21 AC 77 ms
71,144 KB
testcase_22 AC 76 ms
71,496 KB
testcase_23 AC 77 ms
71,264 KB
testcase_24 AC 77 ms
71,172 KB
testcase_25 AC 76 ms
71,396 KB
testcase_26 AC 76 ms
71,296 KB
testcase_27 AC 76 ms
71,168 KB
testcase_28 AC 74 ms
71,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0
for t in range(21):
    for g in range(t + 1):
        r = n - 5 * t - 2 * g
        if r >= 0 and r % 3 == 0:
            ans += 1
print(ans)
0