結果

問題 No.1162 Many Quotients hard
ユーザー chacoder1
提出日時 2021-01-09 11:01:02
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 319 bytes
コンパイル時間 2,118 ms
コンパイル使用メモリ 194,828 KB
最終ジャッジ日時 2025-01-17 15:19:50
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25 TLE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  long long N;
  cin>>N;
  map<long long,long long>mp;
  long long cnt=0;
  long long temp=-1;
  long long i=1;
  while(1){
    if(N/i != temp){
      temp=N/i;
      cnt++;
      i++;
      continue;
    }
    cnt+=temp;
    break;
  }
  cout<<cnt-1<<endl;
}
0