結果
問題 | No.2836 Comment Out |
ユーザー |
|
提出日時 | 2024-08-09 22:07:25 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 97 ms / 2,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 246 ms |
コンパイル使用メモリ | 82,292 KB |
実行使用メモリ | 100,356 KB |
最終ジャッジ日時 | 2024-08-09 22:07:38 |
合計ジャッジ時間 | 5,484 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 52 |
ソースコード
import sysinput = sys.stdin.readlineN = int(input())A = list(map(int, input().split()))zero = 0one = 0for a in A:if a==0:zero += 1elif a==1:one += 1if zero+one>=1:print("Yes")else:print("No")