結果

問題 No.1229 ラグビーの得点パターン
ユーザー yukuyonyukuyon
提出日時 2020-09-19 20:37:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 655 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 76,372 KB
最終ジャッジ日時 2023-09-05 22:55:22
合計ジャッジ時間 4,203 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
76,004 KB
testcase_01 AC 80 ms
76,368 KB
testcase_02 AC 79 ms
75,988 KB
testcase_03 AC 79 ms
76,200 KB
testcase_04 AC 79 ms
76,280 KB
testcase_05 AC 78 ms
76,368 KB
testcase_06 AC 75 ms
76,260 KB
testcase_07 AC 79 ms
76,228 KB
testcase_08 AC 72 ms
76,276 KB
testcase_09 AC 74 ms
75,988 KB
testcase_10 AC 72 ms
76,184 KB
testcase_11 AC 73 ms
76,372 KB
testcase_12 AC 72 ms
76,276 KB
testcase_13 AC 73 ms
76,200 KB
testcase_14 AC 72 ms
76,276 KB
testcase_15 AC 73 ms
76,132 KB
testcase_16 AC 72 ms
76,064 KB
testcase_17 AC 75 ms
76,000 KB
testcase_18 AC 75 ms
76,340 KB
testcase_19 AC 73 ms
75,992 KB
testcase_20 AC 73 ms
76,112 KB
testcase_21 AC 74 ms
76,256 KB
testcase_22 AC 75 ms
76,208 KB
testcase_23 AC 76 ms
76,212 KB
testcase_24 AC 72 ms
76,316 KB
testcase_25 AC 73 ms
76,108 KB
testcase_26 AC 73 ms
76,192 KB
testcase_27 AC 74 ms
76,368 KB
testcase_28 AC 73 ms
76,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=0
for t in range(21):
    for g in range(t+1):
        for p in range(35):
            if t*5+g*2+p*3==n:
                ans+=1
print(ans)
0