結果

問題 No.712 赤旗
ユーザー papyruspapyrus
提出日時 2018-07-14 06:59:30
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 29,440 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 11:54:16
合計ジャッジ時間 533 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>

int main(void){
    int n, m, i, j, t;
    char a[51][51];
    scanf("%d%d", &n, &m);
    for(i=0;i<n;i++){
        for(j=0;j<=m;j++){
            scanf("%c", &a[i][j]);
            if(a[i][j] == 'W') t++;
        }
    }
    printf("%d",t);
    return 0;
}
0