結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2014-12-08 19:45:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 131 ms / 5,000 ms |
コード長 | 593 bytes |
コンパイル時間 | 2,266 ms |
コンパイル使用メモリ | 74,248 KB |
実行使用メモリ | 41,384 KB |
最終ジャッジ日時 | 2024-06-11 18:27:57 |
合計ジャッジ時間 | 4,368 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.math.*;import java.util.*;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);String sen = sc.next();char[][] ban = new char[8][8];for(int i=0;i<8;i++){String temp=sc.next();ban[i]=temp.toCharArray();}int count=0;for(int i=0;i<8;i++){for(int j=0;j<8;j++){if(ban[i][j]!='.') count++;}}if(count%2==0){System.out.println(sen);}else{if(sen.equals("oda")){System.out.println("yukiko");}else{System.out.println("oda");}}}}