結果
問題 |
No.3232 Not Tic Tac Toe
|
ユーザー |
|
提出日時 | 2024-07-02 10:48:43 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 333 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 26,444 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2025-07-22 22:30:03 |
合計ジャッジ時間 | 6,474 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); | ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#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"); } if(y==H-1) printf(" "); printf("\r"); } return 0; }