結果
問題 | No.413 +5,000,000pts |
ユーザー |
![]() |
提出日時 | 2016-08-12 23:57:36 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 500 bytes |
コンパイル時間 | 1,518 ms |
コンパイル使用メモリ | 157,964 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-11-07 16:00:48 |
合計ジャッジ時間 | 1,779 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 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(){for(ll i=100000000-100000+1;i<=100000;i++){printf("%lld\n",i*i+i);}return 0;int cnt=0;for(ll i=1000000000-10000000;;i++){if(calc(i*i+i)<i){//printf("%lld\n",i*i+i);cnt++;if(cnt==100000)break;}else{cout<<i<<endl;}}return 0;}