結果

問題 No.1229 ラグビーの得点パターン
ユーザー snqsnq
提出日時 2022-11-17 08:49:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 11,772 KB
実行使用メモリ 10,112 KB
最終ジャッジ日時 2023-10-19 02:23:53
合計ジャッジ時間 7,218 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 201 ms
10,112 KB
testcase_01 AC 203 ms
10,112 KB
testcase_02 AC 202 ms
10,112 KB
testcase_03 AC 197 ms
10,112 KB
testcase_04 AC 194 ms
10,112 KB
testcase_05 AC 202 ms
10,112 KB
testcase_06 AC 199 ms
10,112 KB
testcase_07 AC 198 ms
10,112 KB
testcase_08 AC 197 ms
10,112 KB
testcase_09 AC 199 ms
10,112 KB
testcase_10 AC 203 ms
10,112 KB
testcase_11 AC 198 ms
10,112 KB
testcase_12 AC 197 ms
10,112 KB
testcase_13 AC 203 ms
10,112 KB
testcase_14 AC 197 ms
10,112 KB
testcase_15 AC 200 ms
10,112 KB
testcase_16 AC 196 ms
10,112 KB
testcase_17 AC 199 ms
10,112 KB
testcase_18 AC 200 ms
10,112 KB
testcase_19 AC 199 ms
10,112 KB
testcase_20 AC 195 ms
10,112 KB
testcase_21 AC 200 ms
10,112 KB
testcase_22 AC 202 ms
10,112 KB
testcase_23 AC 194 ms
10,112 KB
testcase_24 AC 200 ms
10,112 KB
testcase_25 AC 196 ms
10,112 KB
testcase_26 AC 200 ms
10,112 KB
testcase_27 AC 200 ms
10,112 KB
testcase_28 AC 201 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = 0
for t in range(101):
    for g in range(101):
        for pg in range(101):
            if t >= g:
                if t * 5 + g * 2 +  pg * 3 == N:
                    ans += 1

print(ans)
0