結果
問題 | No.1505 Zero-Product Ranges |
ユーザー |
|
提出日時 | 2021-12-02 18:23:16 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 99,596 KB |
最終ジャッジ日時 | 2024-07-05 02:00:24 |
合計ジャッジ時間 | 5,992 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 49 |
ソースコード
#!/usr/bin/env python3n = int(input())a = list(map(int, input().split()))c = 0s = 0for b in a:if b == 1:c += 1else:c = 0s += cprint(n * (n - 1) // 2 - s)