結果
問題 | No.1673 Lamps on a line |
ユーザー | Theta |
提出日時 | 2022-11-01 19:16:51 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 10,540 KB |
実行使用メモリ | 14,984 KB |
最終ジャッジ日時 | 2023-09-23 09:46:56 |
合計ジャッジ時間 | 4,581 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
ソースコード
def main(): N, Q = map(int, input().split()) condition = 0 for _ in range(Q): L, R = map(int, input().split()) condition = condition ^ (2**R - 2**(L-1)) # print(format(condition, "b").count("1")) if __name__ == "__main__": main()