結果

問題 No.3232 Not Tic Tac Toe
ユーザー YY-otter
提出日時 2024-06-30 10:40:17
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 26,444 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-07-22 22:29:59
合計ジャッジ時間 6,002 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 27
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%d%d", &H, &W);
      |     ^~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main() {
    int H, W;
    scanf("%d%d", &H, &W);
  
    for(int y=0; y<H; y++){
        for(int x=0; x<W; x++){
            if((x/2)%2 == y%2)
                printf("O");
            else
                printf("X");
        }
        printf(" \r");
    }
    
    return 0;
}
0