結果

問題 No.550 夏休みの思い出(1)
ユーザー くれちーくれちー
提出日時 2017-07-28 23:43:04
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 1,753 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 31,616 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-18 12:22:01
合計ジャッジ時間 47,463 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,460 ms
5,248 KB
testcase_01 AC 737 ms
5,376 KB
testcase_02 AC 727 ms
5,376 KB
testcase_03 AC 740 ms
5,376 KB
testcase_04 AC 732 ms
5,376 KB
testcase_05 AC 722 ms
5,376 KB
testcase_06 AC 731 ms
5,376 KB
testcase_07 AC 737 ms
5,376 KB
testcase_08 AC 737 ms
5,376 KB
testcase_09 AC 1,457 ms
5,376 KB
testcase_10 AC 1,462 ms
5,376 KB
testcase_11 AC 1,465 ms
5,376 KB
testcase_12 AC 1,502 ms
5,376 KB
testcase_13 AC 1,463 ms
5,376 KB
testcase_14 AC 1,011 ms
5,376 KB
testcase_15 AC 995 ms
5,376 KB
testcase_16 AC 748 ms
5,376 KB
testcase_17 AC 1,161 ms
5,376 KB
testcase_18 AC 851 ms
5,376 KB
testcase_19 AC 746 ms
5,376 KB
testcase_20 AC 983 ms
5,376 KB
testcase_21 AC 982 ms
5,376 KB
testcase_22 AC 731 ms
5,376 KB
testcase_23 AC 743 ms
5,376 KB
testcase_24 AC 736 ms
5,376 KB
testcase_25 AC 733 ms
5,376 KB
testcase_26 AC 735 ms
5,376 KB
testcase_27 AC 728 ms
5,376 KB
testcase_28 AC 740 ms
5,376 KB
testcase_29 AC 734 ms
5,376 KB
testcase_30 AC 728 ms
5,376 KB
testcase_31 AC 761 ms
5,376 KB
testcase_32 AC 751 ms
5,376 KB
testcase_33 AC 747 ms
5,376 KB
testcase_34 AC 734 ms
5,376 KB
testcase_35 AC 740 ms
5,376 KB
testcase_36 AC 743 ms
5,376 KB
testcase_37 AC 742 ms
5,376 KB
testcase_38 AC 750 ms
5,376 KB
testcase_39 AC 760 ms
5,376 KB
testcase_40 AC 734 ms
5,376 KB
testcase_41 AC 737 ms
5,376 KB
testcase_42 AC 735 ms
5,376 KB
testcase_43 AC 728 ms
5,376 KB
testcase_44 AC 737 ms
5,376 KB
testcase_45 AC 742 ms
5,376 KB
testcase_46 AC 734 ms
5,376 KB
testcase_47 AC 747 ms
5,376 KB
testcase_48 AC 749 ms
5,376 KB
testcase_49 AC 731 ms
5,376 KB
testcase_50 AC 746 ms
5,376 KB
testcase_51 AC 731 ms
5,376 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REP(i, n) FOR(i, 0, n - 1, 1)
#define REP1(i, n) FOR(i, 1, n, 1)
#define RREP(i, n) RFOR(i, n - 1, 0, 1)
#define RREP1(i, n) RFOR(i, n, 1, 1)
#define FOR(i, a, b, c) for (ll i = a; i <= (ll)b; i += c)
#define RFOR(i, a, b, c) for (ll i = a; i >= (ll)b; i -= c)
#define MAX(a, b) (a > b ? a : b)
#define MIN(a, b) (a < b ? a : b)
#define MAX3(a, b, c) MAX(MAX(a, b), c)
#define MIN3(a, b, c) MIN(MIN(a, b), c)
#define SWAP(a, b) do { typeof(a) _t; _t = a; a = b; b = _t; } while (0)
#define SORT(a, n) qsort(a, n, sizeof(typeof(a)), ({ int _f (const void *_a, const void *_b) { return *(typeof(a) *)_a - *(typeof(a) *)_b; } _f; }))
#define RSORT(a, n) qsort(a, n, sizeof(typeof(a)), ({ int _f (const void *_a, const void *_b) { return *(typeof(a) *)_b - *(typeof(a) *)_a; } _f; }))
#define SUM(a, n) ({ typeof(*(a)) _s = 0; REP(_i, n) _s += (a)[_i]; _s; })
#define PROD(a, n) ({ typeof(*(a)) _p = 1; REP(_i, n) _p *= (a)[_i]; _p; })
#define CNT(x, a, n) ({ int _c = 0; REP(_i, n) if ((a)[_i] == x) _c++; _c; })
#define MAXI(a, n) ({ int _m = 0; REP(_i, n) if ((a)[_i] > (a)[_m]) _m = _i; _m; })
#define MAXM(a, n) a[MAXI(a, n)]
#define MINI(a, n) ({ int _m = 0; REP(_i, n) if ((a)[_i] < (a)[_m]) _m = _i; _m; })
#define MINM(a, n) a[MINI(a, n)]
#define INF 1073709056
#define LLINF 4611686016279904256LL
typedef long long ll;

int main() {
    ll a, b, c;
    scanf("%lld %lld %lld", &a, &b, &c);
    int cnt = 0;
    FOR(i, -999999999, 999999999, 1) {
        if (i * i * i + a * i * i + b * i + c == 0) {
            printf("%lld ", i);
            if (++cnt == 3) return 0;
        }
    }
    return 0;
}
0