結果

問題 No.231 めぐるはめぐる (1)
ユーザー NEEHATOVNEEHATOV
提出日時 2020-06-09 00:47:33
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 561 bytes
コンパイル時間 1,447 ms
コンパイル使用メモリ 28,224 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-27 15:48:32
合計ジャッジ時間 2,908 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 0 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main() {
    int N, G[1000],D[1000], i, j = 0, OK[1000],YES=0;
    scanf("%d", &N);
    for (i = 0; i < N; i++) {
        scanf("%d %d", &G[i], &D[i]);
    }

    for (i = 0; i < N; i++) {
        if ((G[i] - 3000* D[i]) *6 >= 3000000) {
            OK[j++] = i+1;
            YES = 1;
        }
    }
    j = 0;
    if (YES == 1) {
        printf("YES\n");
        for (i = 0; i < 6; i++) {
            printf("%d\n", OK[j]);
            if (i == N - 1)j = 0;
            else j++;
        }
    }else printf("NO\n");

    return 0;

}
0