結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2018-04-30 14:16:24 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 51 ms / 5,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 5,504 KB |
実行使用メモリ | 11,624 KB |
最終ジャッジ日時 | 2024-06-27 23:54:11 |
合計ジャッジ時間 | 1,524 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
print((function (_, s) local h,r = {},0 for e in s:gmatch("%d+") do if h[e]==nil then h[e]=0 end h[e]=h[e]+1 end for _,v in pairs(h) do if v==1 then r=r+1 end end return r end)(io.stdin:read("*l"), io.stdin:read("*l")))