結果

問題 No.550 夏休みの思い出(1)
ユーザー pekempey
提出日時 2017-07-28 22:36:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 68,116 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-10 05:13:07
合計ジャッジ時間 3,071 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>

int main() {
    long long a, b, c;
    std::cin >> a >> b >> c;

    for (long long i = -10000000; i <= 10000000; i++) {
        if (i * i * i + a * i * i + b * i + c == 0) {
            std::cout << i << ' ';
        }
    }
}
0