結果
| 問題 |
No.1673 Lamps on a line
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-01 01:55:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 18,816 KB |
| 最終ジャッジ日時 | 2024-07-18 06:52:14 |
| 合計ジャッジ時間 | 1,412 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 11 |
ソースコード
A=[]
i=0
Q=0
l=0
r=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())
a[l:r]+=1
print(sum([p%2 != 0 for p in a]))