結果

問題 No.1229 ラグビーの得点パターン
ユーザー IH
提出日時 2020-09-20 20:29:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 61,728 KB
最終ジャッジ日時 2024-06-24 10:56:36
合計ジャッジ時間 2,274 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

c = 0

for i in range(n):
  for j in range(n):
    for k in range(n):
      if i*5 + j*2 + k*3 == n and i >= j:
        c += 1
if c == 0:
  print(1)
else:
  print(c)
0