結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2015-08-31 10:26:43 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 20,992 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 16:44:24 |
合計ジャッジ時間 | 617 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%s", s); | ^~~~~~~~~~~~~~ main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%s", B); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>#include <string.h>int main(void){int i, j, k = 0;char s[10];scanf("%s", s);if(strcmp(s, "yukiko")==0) k++;char B[8];for(i=0;i<8;i++){scanf("%s", B);for(j=0;j<8;j++){if(B[j]!='.') k++;}}if(k%2==0){printf("oda\n");}else{printf("yukiko\n");}return 0;}