結果

問題 No.1229 ラグビーの得点パターン
ユーザー pypypymipypypymi
提出日時 2021-12-30 10:40:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 450 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 82,316 KB
実行使用メモリ 61,004 KB
最終ジャッジ日時 2024-04-15 18:14:51
合計ジャッジ時間 2,718 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
60,692 KB
testcase_01 AC 48 ms
59,296 KB
testcase_02 AC 48 ms
60,032 KB
testcase_03 AC 48 ms
61,004 KB
testcase_04 AC 46 ms
60,452 KB
testcase_05 AC 46 ms
59,432 KB
testcase_06 AC 48 ms
59,836 KB
testcase_07 AC 48 ms
58,964 KB
testcase_08 AC 48 ms
59,784 KB
testcase_09 AC 49 ms
60,272 KB
testcase_10 AC 48 ms
60,212 KB
testcase_11 AC 48 ms
59,544 KB
testcase_12 AC 48 ms
59,464 KB
testcase_13 AC 49 ms
60,816 KB
testcase_14 AC 48 ms
59,568 KB
testcase_15 AC 49 ms
60,692 KB
testcase_16 AC 47 ms
60,188 KB
testcase_17 AC 49 ms
60,332 KB
testcase_18 AC 48 ms
59,640 KB
testcase_19 AC 48 ms
59,980 KB
testcase_20 AC 48 ms
59,820 KB
testcase_21 AC 48 ms
60,688 KB
testcase_22 AC 49 ms
60,884 KB
testcase_23 AC 48 ms
59,828 KB
testcase_24 AC 48 ms
60,604 KB
testcase_25 AC 47 ms
60,532 KB
testcase_26 AC 46 ms
60,004 KB
testcase_27 AC 47 ms
59,788 KB
testcase_28 AC 47 ms
60,328 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