結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2016-07-09 11:20:48 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 120 ms / 5,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 2,151 ms |
コンパイル使用メモリ | 74,136 KB |
実行使用メモリ | 41,564 KB |
最終ジャッジ日時 | 2024-10-13 08:37:54 |
合計ジャッジ時間 | 4,365 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.Scanner;class Main{public static void main(String[] args) {Scanner sc=new Scanner(System.in);while(sc.hasNext()){String s=sc.next();int c=-4;for(int i=0;i<8;i++){String str=sc.next();for(int j=0;j<8;j++) if(str.charAt(j)!='.') c++;}if(c%2==0) System.out.println(s);else System.out.println(s.equals("oda") ? "yukiko" : "oda" );}}}