結果
| 問題 |
No.3232 Not Tic Tac Toe
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-30 09:54:34 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 26,444 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-07-22 22:29:42 |
| 合計ジャッジ時間 | 5,630 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 3 WA * 24 |
コンパイルメッセージ
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("\r");
}
return 0;
}