結果
問題 | No.1673 Lamps on a line |
ユーザー | _matumo_ |
提出日時 | 2021-10-06 17:49:23 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 129 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 10,708 KB |
実行使用メモリ | 15,604 KB |
最終ジャッジ日時 | 2023-09-30 08:48:40 |
合計ジャッジ時間 | 6,708 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
12,296 KB |
testcase_01 | AC | 16 ms
7,852 KB |
testcase_02 | AC | 349 ms
7,856 KB |
testcase_03 | AC | 356 ms
7,924 KB |
testcase_04 | AC | 607 ms
7,856 KB |
testcase_05 | AC | 45 ms
7,804 KB |
testcase_06 | AC | 517 ms
7,928 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
f=lambda:[*map(int,input().split())] N,Q=f() p=[0]*N for i in range(Q): L,R=f() for j in range(L-1,R): p[j]^=1 print(sum(p))