結果

問題 No.1765 While Shining
ユーザー アナスタシアアナスタシア
提出日時 2021-12-06 12:44:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 213 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 19,352 KB
最終ジャッジ日時 2023-09-21 15:09:06
合計ジャッジ時間 8,575 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
19,352 KB
testcase_01 AC 16 ms
7,864 KB
testcase_02 AC 16 ms
7,796 KB
testcase_03 AC 15 ms
7,920 KB
testcase_04 AC 16 ms
7,864 KB
testcase_05 AC 15 ms
7,808 KB
testcase_06 AC 16 ms
7,992 KB
testcase_07 AC 15 ms
7,920 KB
testcase_08 AC 16 ms
7,812 KB
testcase_09 AC 148 ms
10,324 KB
testcase_10 AC 214 ms
11,376 KB
testcase_11 AC 182 ms
10,948 KB
testcase_12 AC 199 ms
10,972 KB
testcase_13 AC 183 ms
11,252 KB
testcase_14 AC 229 ms
11,280 KB
testcase_15 AC 221 ms
11,404 KB
testcase_16 AC 223 ms
11,288 KB
testcase_17 AC 224 ms
11,260 KB
testcase_18 AC 223 ms
11,384 KB
testcase_19 AC 227 ms
11,284 KB
testcase_20 AC 223 ms
11,284 KB
testcase_21 AC 222 ms
11,424 KB
testcase_22 AC 225 ms
11,252 KB
testcase_23 AC 234 ms
11,280 KB
testcase_24 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0