結果
問題 | No.1673 Lamps on a line |
ユーザー | 👑 tatt61880 |
提出日時 | 2021-09-11 20:32:04 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
RE
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 2,755 ms |
コンパイル使用メモリ | 147,888 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-05 09:22:47 |
合計ジャッジ時間 | 5,589 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | AC | 3 ms
4,380 KB |
testcase_09 | RE | - |
testcase_10 | AC | 163 ms
4,380 KB |
testcase_11 | AC | 16 ms
4,376 KB |
testcase_12 | RE | - |
ソースコード
func main() var n: int :: cui@inputInt() var q: int :: cui@inputInt() var ans: int :: 0 var v: []bool :: #[n]bool for(1, q) var l: int :: cui@inputInt() var r: int :: cui@inputInt() for i(l, r) do ans :+ v[i] ?(-1, 1) do v[i] :: !v[i] end for do cui@print("\{ans}\n") end for end func