結果

問題 No.1229 ラグビーの得点パターン
ユーザー googol_S0googol_S0
提出日時 2020-09-18 21:21:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 1,725 ms
コンパイル使用メモリ 86,296 KB
実行使用メモリ 75,876 KB
最終ジャッジ日時 2023-09-04 09:15:24
合計ジャッジ時間 4,470 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
70,764 KB
testcase_01 AC 79 ms
70,740 KB
testcase_02 AC 87 ms
74,996 KB
testcase_03 AC 88 ms
75,648 KB
testcase_04 AC 76 ms
70,748 KB
testcase_05 AC 74 ms
71,076 KB
testcase_06 AC 75 ms
70,996 KB
testcase_07 AC 77 ms
70,512 KB
testcase_08 AC 78 ms
71,124 KB
testcase_09 AC 77 ms
71,000 KB
testcase_10 AC 81 ms
75,104 KB
testcase_11 AC 84 ms
75,556 KB
testcase_12 AC 82 ms
75,472 KB
testcase_13 AC 82 ms
75,556 KB
testcase_14 AC 81 ms
75,696 KB
testcase_15 AC 80 ms
75,524 KB
testcase_16 AC 81 ms
75,620 KB
testcase_17 AC 81 ms
75,228 KB
testcase_18 AC 84 ms
75,672 KB
testcase_19 AC 81 ms
75,388 KB
testcase_20 AC 82 ms
75,552 KB
testcase_21 AC 82 ms
75,328 KB
testcase_22 AC 84 ms
75,556 KB
testcase_23 AC 83 ms
75,136 KB
testcase_24 AC 86 ms
75,840 KB
testcase_25 AC 85 ms
75,616 KB
testcase_26 AC 80 ms
75,828 KB
testcase_27 AC 85 ms
75,604 KB
testcase_28 AC 85 ms
75,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
P=0
for i in range(N+1):
  for j in range(i+1):
    for k in range(N+1):
      if i*5+j*2+k*3==N:
        P+=1
print(P)
0