結果
| 問題 | 
                            No.1673 Lamps on a line
                             | 
                    
| コンテスト | |
| ユーザー | 
                             _matumo_
                         | 
                    
| 提出日時 | 2021-10-06 17:49:23 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 129 bytes | 
| コンパイル時間 | 219 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 20,640 KB | 
| 最終ジャッジ日時 | 2024-07-23 02:55:25 | 
| 合計ジャッジ時間 | 6,488 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 5 TLE * 1 -- * 5 | 
ソースコード
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))
            
_matumo_