結果

問題 No.1229 ラグビーの得点パターン
ユーザー uni_pythonuni_python
提出日時 2020-09-20 11:46:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 435 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 86,524 KB
実行使用メモリ 75,924 KB
最終ジャッジ日時 2023-09-06 16:14:38
合計ジャッジ時間 4,232 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
75,440 KB
testcase_01 AC 77 ms
75,788 KB
testcase_02 AC 78 ms
75,532 KB
testcase_03 AC 75 ms
75,868 KB
testcase_04 AC 76 ms
75,296 KB
testcase_05 AC 74 ms
75,760 KB
testcase_06 AC 76 ms
75,440 KB
testcase_07 AC 74 ms
75,796 KB
testcase_08 AC 76 ms
75,636 KB
testcase_09 AC 74 ms
75,592 KB
testcase_10 AC 74 ms
75,440 KB
testcase_11 AC 74 ms
75,924 KB
testcase_12 AC 74 ms
75,592 KB
testcase_13 AC 74 ms
75,616 KB
testcase_14 AC 76 ms
75,556 KB
testcase_15 AC 76 ms
75,296 KB
testcase_16 AC 75 ms
75,584 KB
testcase_17 AC 75 ms
75,764 KB
testcase_18 AC 75 ms
75,612 KB
testcase_19 AC 76 ms
75,644 KB
testcase_20 AC 74 ms
75,668 KB
testcase_21 AC 75 ms
75,592 KB
testcase_22 AC 74 ms
75,536 KB
testcase_23 AC 77 ms
75,868 KB
testcase_24 AC 76 ms
75,780 KB
testcase_25 AC 75 ms
75,788 KB
testcase_26 AC 76 ms
75,548 KB
testcase_27 AC 77 ms
75,404 KB
testcase_28 AC 76 ms
75,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    N=I()
    ans=0
    
    for t in range(100):
        for g in range(t+1):
            for pg in range(100):
                temp=5*t + 2*g +3*pg
                if temp==N:
                    ans+=1
                    
    print(ans)


main()
0