結果

問題 No.88 次はどっちだ
ユーザー kikage
提出日時 2020-04-09 18:49:31
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 23,168 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 20:15:28
合計ジャッジ時間 925 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |     scanf("%s",name);
      |     ~~~~~^~~~~~~~~~~
main.cpp:7:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |             scanf("%c",&c);
      |             ~~~~~^~~~~~~~~

ソースコード

diff #

#include <cstdio>
int main(){
    int cnt=0;char c,name[7];
    scanf("%s",name);
    for(int x=0;x<8;x++){
        for(int y=0;y<8;y++){
            scanf("%c",&c);
            if(c!='.')cnt++;
        }
    }
    
    printf("%s\n",((cnt+(name[0]=='o'?1:0))%2==1?"oda":"yukiko"));
    return 0;
}
0