結果

問題 No.1229 ラグビーの得点パターン
ユーザー deepjugglingdeepjuggling
提出日時 2022-06-13 22:38:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 59,900 KB
最終ジャッジ日時 2024-04-08 20:02:37
合計ジャッジ時間 2,818 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
59,900 KB
testcase_01 AC 44 ms
59,900 KB
testcase_02 AC 45 ms
59,900 KB
testcase_03 AC 46 ms
59,900 KB
testcase_04 AC 45 ms
59,900 KB
testcase_05 AC 45 ms
59,900 KB
testcase_06 AC 45 ms
59,900 KB
testcase_07 AC 46 ms
59,900 KB
testcase_08 AC 48 ms
59,900 KB
testcase_09 AC 45 ms
59,900 KB
testcase_10 AC 47 ms
59,900 KB
testcase_11 AC 46 ms
59,900 KB
testcase_12 AC 47 ms
59,900 KB
testcase_13 AC 46 ms
59,900 KB
testcase_14 AC 45 ms
59,900 KB
testcase_15 AC 46 ms
59,900 KB
testcase_16 AC 46 ms
59,900 KB
testcase_17 AC 45 ms
59,900 KB
testcase_18 AC 47 ms
59,900 KB
testcase_19 AC 46 ms
59,900 KB
testcase_20 AC 46 ms
59,900 KB
testcase_21 AC 45 ms
59,900 KB
testcase_22 AC 46 ms
59,900 KB
testcase_23 AC 45 ms
59,900 KB
testcase_24 AC 46 ms
59,900 KB
testcase_25 AC 47 ms
59,900 KB
testcase_26 AC 46 ms
59,900 KB
testcase_27 AC 45 ms
59,900 KB
testcase_28 AC 45 ms
59,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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