結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2015-07-07 06:12:12 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 405 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-08 01:28:02 |
合計ジャッジ時間 | 766 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%s", s); | ^~~~~~~~~~~~~~ main.c:12:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%s", b); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <string.h> int main(void){ int i,j; int cnt=0; char s[100]; scanf("%s", s); for(i=0;i<8;i++){ int len; char b[100]; scanf("%s", b); len = strlen(b); for(j=0;j<len;j++){ if(b[j] != '.'){ cnt++; } } } cnt -= 4; if(cnt%2 == 0){ printf("%s\n", s); }else{ if(s[0] == 'o'){ printf("yukiko\n"); }else{ printf("oda\n"); } } return 0; }