結果

問題 No.1229 ラグビーの得点パターン
ユーザー brthyyjpbrthyyjp
提出日時 2020-09-18 23:09:13
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 522 ms
コンパイル使用メモリ 86,492 KB
実行使用メモリ 75,976 KB
最終ジャッジ日時 2023-09-04 11:30:30
合計ジャッジ時間 3,894 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
70,904 KB
testcase_01 AC 76 ms
70,816 KB
testcase_02 AC 78 ms
75,708 KB
testcase_03 AC 85 ms
75,784 KB
testcase_04 AC 75 ms
70,672 KB
testcase_05 AC 75 ms
70,900 KB
testcase_06 AC 76 ms
70,792 KB
testcase_07 AC 74 ms
70,504 KB
testcase_08 AC 74 ms
71,152 KB
testcase_09 AC 74 ms
70,848 KB
testcase_10 AC 79 ms
75,424 KB
testcase_11 AC 78 ms
75,428 KB
testcase_12 AC 80 ms
75,764 KB
testcase_13 AC 81 ms
75,976 KB
testcase_14 AC 80 ms
75,604 KB
testcase_15 AC 81 ms
75,976 KB
testcase_16 AC 81 ms
75,832 KB
testcase_17 AC 81 ms
75,964 KB
testcase_18 AC 78 ms
75,848 KB
testcase_19 AC 82 ms
75,416 KB
testcase_20 AC 84 ms
75,752 KB
testcase_21 AC 83 ms
75,728 KB
testcase_22 AC 82 ms
75,912 KB
testcase_23 AC 84 ms
75,860 KB
testcase_24 AC 85 ms
75,776 KB
testcase_25 AC 82 ms
75,788 KB
testcase_26 AC 83 ms
75,716 KB
testcase_27 AC 83 ms
75,872 KB
testcase_28 AC 83 ms
75,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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