結果
問題 |
No.1765 While Shining
|
ユーザー |
|
提出日時 | 2021-11-26 22:55:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 164 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 111,616 KB |
最終ジャッジ日時 | 2024-06-29 18:22:54 |
合計ジャッジ時間 | 2,891 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 1 WA * 21 |
ソースコード
n,*a=map(int,open(0).read().split()) x=a[0]==0 from collections import deque a=deque(a) while a and a[-1]==1:a.pop() while a and a[0]==0:a.popleft() print(len(a)-x)