結果
| 問題 | No.1162 Many Quotients hard |
| ユーザー |
kokatsu
|
| 提出日時 | 2023-01-04 21:56:31 |
| 言語 | D (dmd 2.112.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 1,089 ms |
| コンパイル使用メモリ | 184,960 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-27 06:53:54 |
| 合計ジャッジ時間 | 3,067 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 WA * 19 |
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/core/checkedint.d(814): Warning: cannot inline function `core.checkedint.mulu!().mulu`
ulong mulu()(ulong x, uint y, ref bool overflow)
^
ソースコード
import std;
void main() {
long N;
readf("%d\n", N);
long R = N.to!real.sqrt.floor.to!long;
long res = R * 2;
if (R * R == N) --res;
res.writeln;
}
kokatsu