結果
問題 |
No.2851 Make Pairs
|
ユーザー |
👑 |
提出日時 | 2024-09-01 10:21:31 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 80 ms / 2,000 ms |
コード長 | 177 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 7,068 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-01 10:21:32 |
合計ジャッジ時間 | 1,775 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 |
ソースコード
local n = io.read("*n") local t = {} local c = 0 for i = 1, n do local a = io.read("*n") if t[a] then c = c + 1 t[a] = nil else t[a] = true end end print(c)