結果
問題 | No.413 +5,000,000pts |
ユーザー |
|
提出日時 | 2017-07-11 15:09:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 5,000 ms |
コード長 | 456 bytes |
コンパイル時間 | 2,267 ms |
コンパイル使用メモリ | 191,284 KB |
最終ジャッジ日時 | 2025-01-05 01:30:58 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;#define REP(i,n) for (int i=0;i<(n);i++)#define REP2(i,m,n) for (int i=m;i<(n);i++)ll calc(ll d) {return (ll)((-1 + sqrt(1 + 4*d)) / 2.0);}int main() {int cnt = 0;for (ll i = 900000000; ; ++i) {//ll d = i * i + i;//ll t = calc(d);printf("%lld\n", i * i + i - 1);cnt++;if (cnt == 100000) break;}return 0;}