結果
| 問題 |
No.1162 Many Quotients hard
|
| ユーザー |
yuruhiya
|
| 提出日時 | 2020-08-12 11:02:00 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 88 ms / 2,000 ms |
| コード長 | 77 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-09 18:24:36 |
| 合計ジャッジ時間 | 5,644 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 42 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i x = Math.sqrt(n).to_i x -= 1 if x * x > n puts x + n / (x + 1)
yuruhiya