結果

問題 No.1229 ラグビーの得点パターン
ユーザー uni_pythonuni_python
提出日時 2020-09-20 11:46:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 435 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 60,160 KB
最終ジャッジ日時 2024-06-24 10:40:27
合計ジャッジ時間 3,037 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

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