結果

問題 No.2812 Plus Minus Blackboard
ユーザー miho-4
提出日時 2024-07-19 21:49:24
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 239 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 82,648 KB
実行使用メモリ 104,696 KB
最終ジャッジ日時 2025-04-09 01:23:18
合計ジャッジ時間 2,982 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
L=list(map(int,input().split()))
p,m=0,0
for e in L:
  if e<0:
    m+=e
  else:
    p+=e

tot=m+p

ans="No"
if tot==0:
  ans="Yes"
if 0<tot:
  if tot<max(L):
    ans="Yes"
if tot<0:
  if min(L)<tot:
    ans="Yes"
print(ans)
0