結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-09 18:48:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 294 bytes |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 22,656 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-13 20:15:30 |
| 合計ジャッジ時間 | 636 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / 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);
| ~~~~~^~~~~~~~~
ソースコード
#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'))%2==1?"oda":"yukiko"));
return 0;
}