結果

問題 No.550 夏休みの思い出(1)
ユーザー ei1333333ei1333333
提出日時 2017-07-28 22:45:44
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 333 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 157,916 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-18 10:35:04
合計ジャッジ時間 81,204 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1,319 ms
5,248 KB
testcase_02 AC 1,319 ms
5,376 KB
testcase_03 AC 1,325 ms
5,376 KB
testcase_04 AC 1,320 ms
5,376 KB
testcase_05 AC 1,317 ms
5,376 KB
testcase_06 AC 1,316 ms
5,376 KB
testcase_07 AC 1,319 ms
5,376 KB
testcase_08 AC 1,317 ms
5,376 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 1,320 ms
5,376 KB
testcase_23 AC 1,319 ms
5,376 KB
testcase_24 AC 1,318 ms
5,376 KB
testcase_25 AC 1,318 ms
5,376 KB
testcase_26 AC 1,319 ms
5,376 KB
testcase_27 AC 1,319 ms
5,376 KB
testcase_28 AC 1,319 ms
5,376 KB
testcase_29 AC 1,318 ms
5,376 KB
testcase_30 AC 1,322 ms
5,376 KB
testcase_31 AC 1,319 ms
5,376 KB
testcase_32 AC 1,318 ms
5,376 KB
testcase_33 AC 1,319 ms
5,376 KB
testcase_34 AC 1,319 ms
5,376 KB
testcase_35 AC 1,316 ms
5,376 KB
testcase_36 AC 1,317 ms
5,376 KB
testcase_37 AC 1,317 ms
5,376 KB
testcase_38 AC 1,331 ms
5,376 KB
testcase_39 AC 1,319 ms
5,376 KB
testcase_40 AC 1,317 ms
5,376 KB
testcase_41 AC 1,321 ms
5,376 KB
testcase_42 AC 1,321 ms
5,376 KB
testcase_43 AC 1,316 ms
5,376 KB
testcase_44 AC 1,317 ms
5,376 KB
testcase_45 AC 1,320 ms
5,376 KB
testcase_46 AC 1,318 ms
5,376 KB
testcase_47 AC 1,319 ms
5,376 KB
testcase_48 AC 1,317 ms
5,376 KB
testcase_49 AC 1,319 ms
5,376 KB
testcase_50 AC 1,318 ms
5,376 KB
testcase_51 AC 1,317 ms
5,376 KB
testcase_52 AC 1,317 ms
5,376 KB
testcase_53 AC 1,322 ms
5,376 KB
testcase_54 AC 1,318 ms
5,376 KB
testcase_55 AC 1,319 ms
5,376 KB
testcase_56 AC 1,318 ms
5,376 KB
testcase_57 AC 1,318 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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