結果

問題 No.88 次はどっちだ
ユーザー リチウム
提出日時 2014-11-24 21:25:15
言語 Java
(openjdk 23)
結果
AC  
実行時間 118 ms / 5,000 ms
コード長 394 bytes
コンパイル時間 2,344 ms
コンパイル使用メモリ 76,784 KB
実行使用メモリ 54,496 KB
最終ジャッジ日時 2025-01-02 21:14:45
合計ジャッジ時間 4,404 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	
	
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  String s=sc.next();
	  int x=0;
	  if(s.equals("oda"))x=1;
	  for(int i=0;i<8;i++){
		  char a[]=sc.next().toCharArray();
		  for(char p:a){if(p=='.')x++;
		  }
	  }
	  if(x%2==0)System.out.println("yukiko");
	  else System.out.println("oda");
  }}
0