結果
| 問題 | No.413 +5,000,000pts |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-19 00:29:34 |
| 言語 | C++23(gcc16) (gcc 16.2.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 617 bytes |
| 記録 | |
| コンパイル時間 | 1,154 ms |
| コンパイル使用メモリ | 180,108 KB |
| 実行使用メモリ | 7,856 KB |
| 最終ジャッジ日時 | 2026-10-19 00:29:38 |
| 合計ジャッジ時間 | 2,852 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include <cmath>
#include <iostream>
int main() {
using namespace std;
auto calc = [&](long long d) -> bool {
volatile double c = sqrt(d * 4 + 1);
volatile long long s = sqrt(c);
long long t = static_cast<long long>((-1 + s) / 2.0);
return t * t + t > d || (t + 1) * (t + 1) + (t + 1) <= d;
};
constexpr long long max_t = 999999999;
int count = 0;
for (int t = max_t; count < 100000 ; t--) {
long long d = t * t + t - 1;
while (count < 100000 && calc(d)) {
cout << d << "\n";
count++;
d--;
}
}
}