結果

問題 No.1229 ラグビーの得点パターン
ユーザー otsu1000
提出日時 2020-10-13 09:34:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-07-20 18:22:58
合計ジャッジ時間 2,143 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
pattern = 0
for t in range(N // 5 + 1):
    for c in range(t + 1):
        n = N - (t * 5 + c * 2)
        if 0 > n or n % 3:
            continue
        pattern += 1
print(pattern)
0