結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2016-06-28 22:27:15 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 137 ms / 5,000 ms |
コード長 | 538 bytes |
コンパイル時間 | 3,603 ms |
コンパイル使用メモリ | 74,756 KB |
実行使用メモリ | 54,060 KB |
最終ジャッジ日時 | 2024-10-11 22:00:05 |
合計ジャッジ時間 | 5,851 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.*;public class Exercise136{public static void main (String[] args){Scanner sc = new Scanner(System.in);String s = sc.next();String b = "yukiko";String w = "oda";if(s.equals("oda")){b = "oda";w = "yukiko";}int count = 0;for(int i = 0; i < 8; i++){String l = sc.next();char[] la = l.toCharArray();for(char each : la){if(each != '.'){count++;}}}System.out.println((count % 2 == 0) ? b : w);}}