結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー maimai
提出日時 2016-07-24 00:22:38
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 137 ms / 3,000 ms
コード長 412 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 36,608 KB
最終ジャッジ日時 2024-04-24 08:15:13
合計ジャッジ時間 1,159 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
36,480 KB
testcase_01 AC 27 ms
36,608 KB
testcase_02 AC 129 ms
36,480 KB
testcase_03 AC 27 ms
36,480 KB
testcase_04 AC 129 ms
36,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |     scanf("%d",&p);
      |     ^~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

#define SIZE 3000

int array[SIZE][SIZE];

int main(){
    int x,y,p;
    scanf("%d",&p);
    if (p%2==0){
        for (y=0;y<SIZE;y++){
            for (x=0;x<SIZE;x++){
                array[y][x]=1;
            }
        }
    }else{
        for (y=0;y<SIZE;y++){
            for (x=0;x<SIZE;x++){
                array[x][y]=1;
            }
        }
    }
    puts("0");
    return 0;
}
0