結果
問題 | No.1926 Sequence of Remainders |
ユーザー |
👑 |
提出日時 | 2022-05-07 22:43:48 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 69 ms / 2,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 356 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 04:46:20 |
合計ジャッジ時間 | 7,450 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 35 |
ソースコード
local q = io.read("*n") for iq = 1, q do local n, m, k = io.read("*n", "*n", "*n") local z = k % m local last = m - n if z < last then print(z) else print(0) end end