結果

問題 No.1229 ラグビーの得点パターン
ユーザー tanon710tanon710
提出日時 2020-09-18 23:30:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 76,228 KB
最終ジャッジ日時 2023-09-04 11:39:04
合計ジャッジ時間 3,977 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
75,940 KB
testcase_01 AC 83 ms
76,012 KB
testcase_02 AC 84 ms
76,100 KB
testcase_03 AC 88 ms
75,724 KB
testcase_04 AC 83 ms
76,044 KB
testcase_05 AC 85 ms
76,140 KB
testcase_06 AC 84 ms
76,136 KB
testcase_07 AC 84 ms
76,100 KB
testcase_08 AC 85 ms
76,104 KB
testcase_09 AC 83 ms
76,136 KB
testcase_10 AC 82 ms
76,016 KB
testcase_11 AC 83 ms
75,972 KB
testcase_12 AC 83 ms
75,968 KB
testcase_13 AC 82 ms
76,168 KB
testcase_14 AC 83 ms
75,968 KB
testcase_15 AC 83 ms
76,076 KB
testcase_16 AC 84 ms
76,096 KB
testcase_17 AC 83 ms
76,172 KB
testcase_18 AC 83 ms
75,712 KB
testcase_19 AC 83 ms
75,848 KB
testcase_20 AC 82 ms
75,856 KB
testcase_21 AC 82 ms
75,968 KB
testcase_22 AC 83 ms
76,072 KB
testcase_23 AC 83 ms
75,848 KB
testcase_24 AC 83 ms
75,964 KB
testcase_25 AC 82 ms
76,228 KB
testcase_26 AC 83 ms
76,080 KB
testcase_27 AC 83 ms
75,968 KB
testcase_28 AC 82 ms
76,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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