結果
| 問題 |
No.413 +5,000,000pts
|
| ユーザー |
maspy
|
| 提出日時 | 2020-03-05 15:06:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 129 ms / 5,000 ms |
| コード長 | 378 bytes |
| コンパイル時間 | 3,082 ms |
| コンパイル使用メモリ | 157,536 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 01:15:25 |
| 合計ジャッジ時間 | 3,058 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll calc(ll d)
{
return (ll)((-1 + sqrt(1 + 4 * d)) / 2.0);
}
int main()
{
int rest = 1e5;
ll t = 1e9 - 1;
while (rest)
{
ll d = t * t + t - 1;
if (calc(d) != t - 1)
{
cout << d << endl;
rest--;
}
t--;
};
return 0;
}
maspy