結果

問題 No.1229 ラグビーの得点パターン
ユーザー ygd.
提出日時 2020-09-18 21:24:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 59,164 KB
最終ジャッジ日時 2024-06-22 08:38:59
合計ジャッジ時間 2,240 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for c in range(55):
  for t in range(c,50):
    temp = c*2+t*5
    if temp > N:
      continue
    if (N-temp)%3 == 0:
      #print(temp,c,t)
      ans += 1
print(ans)
0