結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-09 18:54:03 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 22,784 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-13 20:17:07 |
| 合計ジャッジ時間 | 694 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
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:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%s",c);
| ~~~~~^~~~~~~~
ソースコード
#include <cstdio>
int main(){
int cnt=0;char c[8+1],name[7];
scanf("%s",name);
for(int x=0;x<8;x++){
scanf("%s",c);
for(int y=0;y<8;y++){
if(c[y]!='.')cnt++;
}
}
printf("%s\n",(cnt+(name[0]=='o'))%2==1?"oda":"yukiko");
return 0;
}