結果
問題 | No.1673 Lamps on a line |
ユーザー | p ,p |
提出日時 | 2021-10-01 01:04:41 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 10,908 KB |
実行使用メモリ | 21,608 KB |
最終ジャッジ日時 | 2023-09-25 07:08:22 |
合計ジャッジ時間 | 6,446 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
12,160 KB |
testcase_01 | AC | 14 ms
7,848 KB |
testcase_02 | AC | 373 ms
7,780 KB |
testcase_03 | AC | 380 ms
7,964 KB |
testcase_04 | AC | 662 ms
7,860 KB |
testcase_05 | AC | 49 ms
7,960 KB |
testcase_06 | AC | 582 ms
7,844 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
A=[] i=0 Q=0 l=0 r=0 k=0 s=0 n,q=map(int,input().split()) for i in range(0,n,1): A.append(0) a=list(map(int,A)) for Q in range(0,q,1): l,r=map(int,input().split()) for k in range(l-1,r,1): a[k]+=1 print(sum([p%2 != 0 for p in a]))