結果

問題 No.1229 ラグビーの得点パターン
ユーザー naniwazunaniwazu
提出日時 2020-09-18 23:58:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 1,643 ms
コンパイル使用メモリ 86,572 KB
実行使用メモリ 76,444 KB
最終ジャッジ日時 2023-09-04 13:03:25
合計ジャッジ時間 5,050 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
76,108 KB
testcase_01 AC 90 ms
76,076 KB
testcase_02 AC 88 ms
75,840 KB
testcase_03 AC 89 ms
76,072 KB
testcase_04 AC 89 ms
76,036 KB
testcase_05 AC 87 ms
76,180 KB
testcase_06 AC 89 ms
75,984 KB
testcase_07 AC 88 ms
76,076 KB
testcase_08 AC 91 ms
76,444 KB
testcase_09 AC 91 ms
76,092 KB
testcase_10 AC 90 ms
75,816 KB
testcase_11 AC 89 ms
76,036 KB
testcase_12 AC 90 ms
76,172 KB
testcase_13 AC 88 ms
76,104 KB
testcase_14 AC 90 ms
76,176 KB
testcase_15 AC 90 ms
75,988 KB
testcase_16 AC 90 ms
76,032 KB
testcase_17 AC 91 ms
76,112 KB
testcase_18 AC 95 ms
76,116 KB
testcase_19 AC 95 ms
76,116 KB
testcase_20 AC 92 ms
76,176 KB
testcase_21 AC 89 ms
75,920 KB
testcase_22 AC 88 ms
75,832 KB
testcase_23 AC 88 ms
76,056 KB
testcase_24 AC 89 ms
75,928 KB
testcase_25 AC 92 ms
76,108 KB
testcase_26 AC 94 ms
76,080 KB
testcase_27 AC 91 ms
76,064 KB
testcase_28 AC 90 ms
76,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for i in range(40):
    for j in range(30):
        for k in range(20):
            if i*3+j*5+k*7 == N:
                ans += 1
print(ans)
0