結果
問題 | No.413 +5,000,000pts |
ユーザー | maspy |
提出日時 | 2020-03-05 15:06:00 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 132 ms / 5,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 2,840 ms |
コンパイル使用メモリ | 144,084 KB |
実行使用メモリ | 4,376 KB |
最終ジャッジ日時 | 2023-08-04 04:11:03 |
合計ジャッジ時間 | 3,242 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
ソースコード
#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; }