結果
問題 |
No.1162 Many Quotients hard
|
ユーザー |
![]() |
提出日時 | 2020-08-13 02:26:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 2,010 ms |
コンパイル使用メモリ | 192,012 KB |
最終ジャッジ日時 | 2025-01-12 21:33:05 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 42 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; using lint=long long; int main(){ lint n; cin>>n; int m=sqrt(1.0L*n); cout<<2*m-(n/m==m?1:0)<<'\n'; return 0; }