結果

問題 No.1229 ラグビーの得点パターン
ユーザー IHIH
提出日時 2020-09-20 20:29:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 76,308 KB
最終ジャッジ日時 2023-09-06 16:31:24
合計ジャッジ時間 3,679 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,856 KB
testcase_01 AC 71 ms
71,076 KB
testcase_02 AC 75 ms
75,576 KB
testcase_03 AC 83 ms
75,724 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 71 ms
71,104 KB
testcase_07 WA -
testcase_08 AC 72 ms
71,164 KB
testcase_09 AC 72 ms
70,924 KB
testcase_10 AC 74 ms
75,704 KB
testcase_11 AC 75 ms
76,160 KB
testcase_12 AC 77 ms
76,260 KB
testcase_13 AC 78 ms
75,960 KB
testcase_14 AC 76 ms
75,728 KB
testcase_15 AC 78 ms
76,076 KB
testcase_16 AC 77 ms
76,068 KB
testcase_17 AC 77 ms
76,076 KB
testcase_18 AC 79 ms
76,240 KB
testcase_19 AC 79 ms
75,868 KB
testcase_20 AC 79 ms
76,080 KB
testcase_21 AC 78 ms
76,064 KB
testcase_22 AC 80 ms
76,308 KB
testcase_23 AC 81 ms
76,212 KB
testcase_24 AC 80 ms
75,904 KB
testcase_25 AC 79 ms
76,208 KB
testcase_26 AC 80 ms
76,012 KB
testcase_27 AC 81 ms
76,296 KB
testcase_28 AC 81 ms
76,292 KB
権限があれば一括ダウンロードができます

ソースコード

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