結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-23 11:33:39 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 131 ms / 5,000 ms |
| コード長 | 918 bytes |
| コンパイル時間 | 2,061 ms |
| コンパイル使用メモリ | 74,676 KB |
| 実行使用メモリ | 54,160 KB |
| 最終ジャッジ日時 | 2024-06-27 17:11:20 |
| 合計ジャッジ時間 | 4,368 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
// 標準入力を受け取る
Scanner sc = new Scanner(System.in);
String first = sc.nextLine();
String[] s = new String[8];
int count = 0;
for(int i = 0; i < 8; i++) {
s[i] = sc.nextLine();
String[] str = s[i].split("",0);
for(int j = 0; j < 8; j++) {
if(!(str[j].equals("."))) {
count++;
}
}
}
if(count % 2 == 0) {
System.out.println(first);
}else {
if(first.equals("oda")) {
System.out.println("yukiko");
}else {
System.out.println("oda");
}
}
}
}