結果
問題 | No.388 階段 (1) |
ユーザー |
|
提出日時 | 2017-08-16 13:37:32 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 82 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-13 12:51:34 |
合計ジャッジ時間 | 1,996 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
Main.rb:3: warning: `%' after local variable or literal is interpreted as binary operator Main.rb:3: warning: even though it seems like string literal Syntax OK
ソースコード
s,f = gets.split.map(&:to_i) if s %f >= 0 puts s / f + 1 else puts s / f end