結果
| 問題 |
No.1765 While Shining
|
| ユーザー |
|
| 提出日時 | 2021-12-06 12:44:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 19,832 KB |
| 最終ジャッジ日時 | 2024-07-07 08:54:39 |
| 合計ジャッジ時間 | 8,041 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 TLE * 1 |
ソースコード
N = int(input())
As = list(map(int, input().split()))
total = 0
for i in range(N-1):
for j in range(i,N-1):
if (i+j+1) % 2 == As[j]:
total += 1
else:
break
print(total)