結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2016-11-12 02:13:55 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 5,000 ms |
コード長 | 722 bytes |
コンパイル時間 | 2,796 ms |
コンパイル使用メモリ | 74,348 KB |
実行使用メモリ | 54,240 KB |
最終ジャッジ日時 | 2024-11-25 18:56:03 |
合計ジャッジ時間 | 4,363 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.*;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);String s = sc.next();int count = 0;for(int i=0; i<8; i++){String t = sc.next();String [] arr = t.split("");for(int j=0; j<arr.length; j++){if( "w".equals(arr[j]) || "b".equals(arr[j]) ){count++;}}}if(count%2==0){System.out.println(s);}else{if( "yukiko".equals(s) ){System.out.println("oda");}else{System.out.println("yukiko");}}}}