結果

問題 No.550 夏休みの思い出(1)
ユーザー ei1333333
提出日時 2017-07-28 22:45:44
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 333 bytes
コンパイル時間 1,572 ms
コンパイル使用メモリ 160,144 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-10 03:48:33
合計ジャッジ時間 80,488 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 41 WA * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:15:10: warning: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Wdeprecated]
   15 |       if(flag++) cout << " ";
      |          ^~~~

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

typedef long long int64;

int main()
{
  int64 A, B, C;
  cin >> A >> B >> C;

  bool flag = false;
  for(__int128 X = -99999999; X < 100000000; X++) {
    if(X * X * X + A * X * X + B * X + C == 0) {
      if(flag++) cout << " ";
      cout << (int64) X;
    }
  }
  cout << endl;
}

0