結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2018-05-08 13:23:08 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 149 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-15 12:20:44 |
合計ジャッジ時間 | 1,424 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 45 |
ソースコード
print((function (n)local i=3while i^2<=n do if n%i==0 then return i end i=i+1 endreturn n~=4 and n%2==0 and n/2 or nend)(io.stdin:read("*n")))