結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-30 20:30:52 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 336 ms |
| コンパイル使用メモリ | 20,736 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 14:00:51 |
| 合計ジャッジ時間 | 731 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 11 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%s",s);
| ^~~~~~~~~~~~~
main.c:9:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%s",s);
| ^~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
int c,i,j,r;
char s[16];
scanf("%s",s);
if(s[0] == 'y'){r++;}
for(i = 1;i <= 8;i++){
scanf("%s",s);
for(j = 0;j <= 7;j++){
if(!(s[j] != '.')){r++;}
}
}
if(r%2){printf("oda\n");}else{printf("yukiko\n");}
return 0;
}