結果

問題 No.1162 Many Quotients hard
ユーザー kotatsugame
提出日時 2020-10-07 21:42:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 165 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 62,592 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-20 04:10:40
合計ジャッジ時間 4,888 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 2
other AC * 21 TLE * 1 -- * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;
long N;
main()
{
	cin>>N;
	long ans=0;
	long r=N;
	while(r>=1)
	{
		long t=N/r;
		r=N/(t+1);
		ans++;
	}
	cout<<ans<<endl;
}
0