結果
| 問題 |
No.1673 Lamps on a line
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-26 12:58:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 833 ms / 2,000 ms |
| コード長 | 182 bytes |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 14,464 KB |
| 最終ジャッジ日時 | 2024-07-05 15:36:49 |
| 合計ジャッジ時間 | 5,555 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
#yuki1673 n,q=map(int,input().split()) ls=[0]*n s=0 for i in range(q): l,r=map(int,input().split()) for j in range(l-1,r): ls[j]^=1 if ls[j]: s+=1 else: s-=1 print(s)