結果

問題 No.1682 Unfair Game
ユーザー とりゐとりゐ
提出日時 2021-09-17 23:11:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 2,638 ms
コンパイル使用メモリ 86,756 KB
実行使用メモリ 76,312 KB
最終ジャッジ日時 2023-09-12 09:13:51
合計ジャッジ時間 3,821 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
76,088 KB
testcase_01 AC 75 ms
76,088 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 81 ms
76,112 KB
testcase_08 WA -
testcase_09 AC 85 ms
76,312 KB
testcase_10 WA -
testcase_11 AC 80 ms
75,996 KB
testcase_12 AC 83 ms
76,104 KB
testcase_13 WA -
testcase_14 AC 76 ms
76,192 KB
testcase_15 AC 76 ms
76,120 KB
testcase_16 AC 74 ms
76,272 KB
testcase_17 AC 77 ms
76,020 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 82 ms
76,188 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
dp=[0]*10001
dp[5000]=1
mod=10**9+7
for i in a:
  j=i-50
  dp2=dp.copy()
  for k in range(50,9551):
    dp[k+j]+=dp2[k]
    dp[k+j]%=mod
print(sum(dp[5001:])%mod)
0