結果
問題 |
No.2778 Is there Same letter?
|
ユーザー |
👑 |
提出日時 | 2024-08-04 15:38:38 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 170 bytes |
コンパイル時間 | 217 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-08-04 15:38:39 |
合計ジャッジ時間 | 1,298 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
n = io.read("*n", "*l") s = io.read() t = {} for i = 1, n do z = s:sub(i, i) if not t[z] then t[z] = true else print("Yes") os.exit() end end print("No")