結果

問題 No.1229 ラグビーの得点パターン
ユーザー otsunekootsuneko
提出日時 2021-05-14 13:44:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 82,500 KB
実行使用メモリ 60,888 KB
最終ジャッジ日時 2024-04-09 18:57:40
合計ジャッジ時間 2,938 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,680 KB
testcase_01 AC 34 ms
53,352 KB
testcase_02 AC 34 ms
52,404 KB
testcase_03 AC 40 ms
60,888 KB
testcase_04 AC 37 ms
52,188 KB
testcase_05 AC 34 ms
53,284 KB
testcase_06 AC 34 ms
53,088 KB
testcase_07 AC 35 ms
53,152 KB
testcase_08 AC 34 ms
52,028 KB
testcase_09 AC 36 ms
52,004 KB
testcase_10 AC 35 ms
52,444 KB
testcase_11 AC 35 ms
52,132 KB
testcase_12 AC 35 ms
52,768 KB
testcase_13 AC 36 ms
52,492 KB
testcase_14 AC 37 ms
58,928 KB
testcase_15 AC 40 ms
59,444 KB
testcase_16 AC 39 ms
60,068 KB
testcase_17 AC 39 ms
60,332 KB
testcase_18 AC 40 ms
59,104 KB
testcase_19 AC 39 ms
59,548 KB
testcase_20 AC 40 ms
59,736 KB
testcase_21 AC 39 ms
59,416 KB
testcase_22 AC 41 ms
60,428 KB
testcase_23 AC 40 ms
59,976 KB
testcase_24 AC 42 ms
59,356 KB
testcase_25 AC 43 ms
60,824 KB
testcase_26 AC 42 ms
60,128 KB
testcase_27 AC 40 ms
59,436 KB
testcase_28 AC 41 ms
60,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = 0
for i in range(N//5+1):
    for j in range(N//5+1):
        for k in range(N//3+1):
            score = 5*i+2*j+3*k
            if j <= i and score == N:
                ans += 1
print(ans)
0