結果
問題 | No.339 何人が回答したのか |
ユーザー |
👑 |
提出日時 | 2019-04-21 13:15:15 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 11:30:17 |
合計ジャッジ時間 | 1,855 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 61 |
ソースコード
local function getgcd(x, y)while(0 < x and 0 < y) doif(x < y) then y = y % x else x = x % y endendreturn math.max(x, y)endlocal n = io.read("*n")local gcd = io.read("*n")for i = 2, n dogcd = getgcd(gcd, io.read("*n"))endprint(100 / gcd)