結果

問題 No.1229 ラグビーの得点パターン
ユーザー pypypymipypypymi
提出日時 2021-12-30 10:40:58
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 450 bytes
コンパイル時間 542 ms
コンパイル使用メモリ 87,008 KB
実行使用メモリ 76,672 KB
最終ジャッジ日時 2023-07-28 09:06:20
合計ジャッジ時間 4,145 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
76,404 KB
testcase_01 AC 74 ms
76,400 KB
testcase_02 AC 76 ms
76,276 KB
testcase_03 AC 76 ms
76,388 KB
testcase_04 AC 80 ms
76,364 KB
testcase_05 AC 76 ms
76,496 KB
testcase_06 AC 77 ms
76,368 KB
testcase_07 AC 75 ms
76,480 KB
testcase_08 AC 77 ms
76,468 KB
testcase_09 AC 77 ms
76,344 KB
testcase_10 AC 77 ms
76,348 KB
testcase_11 AC 76 ms
76,488 KB
testcase_12 AC 77 ms
76,512 KB
testcase_13 AC 76 ms
76,404 KB
testcase_14 AC 76 ms
76,512 KB
testcase_15 AC 80 ms
76,512 KB
testcase_16 AC 78 ms
76,532 KB
testcase_17 AC 77 ms
76,472 KB
testcase_18 AC 77 ms
76,360 KB
testcase_19 AC 76 ms
76,508 KB
testcase_20 AC 76 ms
76,344 KB
testcase_21 AC 78 ms
76,444 KB
testcase_22 AC 78 ms
76,512 KB
testcase_23 AC 79 ms
76,380 KB
testcase_24 AC 77 ms
76,660 KB
testcase_25 AC 75 ms
76,284 KB
testcase_26 AC 78 ms
76,672 KB
testcase_27 AC 77 ms
76,276 KB
testcase_28 AC 76 ms
76,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#あるチームのラグビーの得点  が与えられます。
#トライ(T: 点)、コンバージョン(G: 点)、ペナルティゴール(PG: 点)の合計で  点になる組み合わせは何通りあるか数えてください。
n = int(input())
count=0
for i1 in range(0,21):
    for i2 in range(0,51):
        for i3 in range(0,34):
            if i1*5+i2*2+i3*3==n and i1>=i2:
                count+=1
print(count)   
0