結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2016-01-27 17:10:52 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 120 ms / 5,000 ms |
コード長 | 507 bytes |
コンパイル時間 | 2,107 ms |
コンパイル使用メモリ | 74,900 KB |
実行使用メモリ | 54,400 KB |
最終ジャッジ日時 | 2024-09-21 17:40:18 |
合計ジャッジ時間 | 4,153 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.*;import java.math.*;import java.io.*;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);String S = sc.next();char[] in;int count = 0;for(int i = 0; i < 8; i++) {in = sc.next().toCharArray();for(int j = 0; j < 8; j++) {if(in[j] != '.') count++;}}if(count % 2 == 0) {System.out.println(S);}else {if(S.equals("oda")) System.out.println("yukiko");else System.out.println("oda");}}}