結果

問題 No.413 +5,000,000pts
ユーザー latte0119latte0119
提出日時 2016-08-12 23:43:49
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 1,631 ms
コンパイル使用メモリ 162,216 KB
実行使用メモリ 6,816 KB
最終ジャッジ日時 2024-04-25 05:51:54
合計ジャッジ時間 7,954 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#define int long long
typedef long long ll;
ll calc(ll d) {
  return (ll)((-1 + sqrt(1 + 4*d)) / 2.0);
}
signed main(){
    int cnt=0;
    for(int i=47453133;;i++){
        if(calc(i*i+i)<i){
            printf("%lld\n",i*i+i);
            cnt++;
            if(cnt==100000)break;
        }
    }
    return 0;
}
0