結果
| 問題 |
No.2812 Plus Minus Blackboard
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-19 22:11:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 187 ms / 2,000 ms |
| コード長 | 767 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 82,220 KB |
| 実行使用メモリ | 118,376 KB |
| 最終ジャッジ日時 | 2025-06-20 02:14:38 |
| 合計ジャッジ時間 | 7,435 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 35 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#n = int(input())
#
#alist = []
#s = input()
n = int(input())
a = list(map(int,input().split()))
if min(a) <= sum(a) <= max(a):
print('Yes')
else:
print('No')
exit()
input = sys.stdin.readline
t = int(input())
for i in range(t):
n = int(input())
a = list(map(int,input().split()))
cnt = n
x = sum(1 if j % 2 == 0 else 0 for j in a)
for j in range(1000000):
if cnt % 2 == 0:
if x == 0:
print(['Bob','Alice'][j % 2])
break
x -= 1
cnt += 1
else:
cnt -= 1