結果

問題 No.2812 Plus Minus Blackboard
ユーザー ああいい
提出日時 2024-07-20 19:53:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 242 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,332 KB
実行使用メモリ 104,872 KB
最終ジャッジ日時 2025-04-08 23:44:40
合計ジャッジ時間 2,663 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int,input().split()))
m = 0
M = 0
p = 0
P = 0
for a in A:
	if a > 0:
		p += 1
		P += a
	elif a < 0:
		m += 1
		M += a
if -M >= P and m <= p:
	print('Yes')
elif -M <= P and m >= p:
	print('Yes')
else:
	print('No')
0