結果
| 問題 | No.413 +5,000,000pts |
| コンテスト | |
| ユーザー |
latte0119
|
| 提出日時 | 2016-08-13 00:18:21 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 1,476 ms |
| コンパイル使用メモリ | 173,696 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-07 23:37:46 |
| 合計ジャッジ時間 | 1,739 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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(){
int cnt=0;
for(ll i=1000000000-200000;i*i+i<=1000000000000000000ll;i++){
if(calc(i*i+i-1)<i){
printf("%lld\n",i*i+i);
cnt++;
if(cnt==100000)break;
}
}
return 0;
}
latte0119