結果

問題 No.1765 While Shining
ユーザー SchneeSchnee
提出日時 2021-11-30 19:03:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 209 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 15,064 KB
最終ジャッジ日時 2023-09-16 14:27:59
合計ジャッジ時間 15,471 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
15,064 KB
testcase_01 AC 15 ms
7,772 KB
testcase_02 AC 16 ms
7,872 KB
testcase_03 AC 16 ms
7,960 KB
testcase_04 AC 17 ms
7,800 KB
testcase_05 AC 16 ms
7,800 KB
testcase_06 AC 16 ms
7,768 KB
testcase_07 AC 16 ms
7,820 KB
testcase_08 AC 16 ms
7,828 KB
testcase_09 AC 393 ms
8,384 KB
testcase_10 AC 744 ms
8,632 KB
testcase_11 AC 624 ms
8,596 KB
testcase_12 AC 686 ms
8,772 KB
testcase_13 AC 583 ms
8,692 KB
testcase_14 AC 804 ms
8,796 KB
testcase_15 AC 816 ms
8,712 KB
testcase_16 AC 808 ms
8,668 KB
testcase_17 AC 813 ms
8,668 KB
testcase_18 AC 805 ms
8,648 KB
testcase_19 AC 809 ms
8,792 KB
testcase_20 AC 798 ms
8,756 KB
testcase_21 AC 816 ms
8,708 KB
testcase_22 AC 812 ms
8,656 KB
testcase_23 AC 823 ms
8,676 KB
testcase_24 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
n=input()[:-1].replace(" ","")
ans=0
for i in range(len(n)):
    a = n[i:]
    f=0
    for j in a:
        if j != str(f%2):
            ans += 1
        else:
            break
        f+=1
print(ans)
0