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