結果
問題 | No.1692 Expectations |
ユーザー | 👑 obakyan |
提出日時 | 2021-10-06 23:57:36 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 63 ms / 2,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 32 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 03:02:39 |
合計ジャッジ時間 | 1,242 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
n, m = io.read("*n", "*n") c = 0 t = {} for i = 1, n do a = io.read("*n") t[a] = true end for k, v in pairs(t) do c = c + 1 end if c == 1 and n == m then print(c .. " 1") else print(c .. " 0") end