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