結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
toto
|
| 提出日時 | 2025-03-27 13:12:28 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 291 bytes |
| 記録 | |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 38,740 KB |
| 実行使用メモリ | 9,284 KB |
| 最終ジャッジ日時 | 2026-07-07 23:34:07 |
| 合計ジャッジ時間 | 1,460 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
ソースコード
#include <stdio.h>
int main(){
int yoko,tate;
scanf("%d%d",&yoko,&tate);
char str[1];
scanf("%s",str);
for(int i = 0;i < tate;i ++){
for(int j = 0;j < yoko;j ++){
printf("%s",str);
if(str[0] == 'W'){
str[0] = 'B';
}else{
str[0] = 'W';
}
}
printf("\n");
}
}
toto