結果
| 問題 |
No.413 +5,000,000pts
|
| コンテスト | |
| ユーザー |
rapurasu
|
| 提出日時 | 2016-08-13 00:09:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 407 bytes |
| コンパイル時間 | 1,262 ms |
| コンパイル使用メモリ | 158,072 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 16:03:22 |
| 合計ジャッジ時間 | 2,486 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 count=0;
for(ll i=0;i<100000000;i++){
ll t = calc(i);
if(((t+1)*(t+1)+(t+1)<i)){
cout<<i<<endl;
count++;
}
if(!(t*t+t<i)){
cout<<i<<endl;
count++;
}
}
//cout<<count<<endl;
return 0;
}
rapurasu