結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-11-04 15:26:01 |
| 言語 | Java (openjdk 26.0.2.1) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 5,000 ms |
| + 957µs | |
| コード長 | 630 bytes |
| 記録 | |
| コンパイル時間 | 1,995 ms |
| コンパイル使用メモリ | 83,736 KB |
| 実行使用メモリ | 45,900 KB |
| 最終ジャッジ日時 | 2026-08-23 05:11:09 |
| 合計ジャッジ時間 | 3,293 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
String sente = sc.next();
int count = 0;
for (int i = 0; i < 8; i++) {
for (char c : sc.next().toCharArray()) {
if (c == '.') {
count++;
}
}
}
if (count % 2 == 0) {
if (sente.equals("oda")) {
System.out.println("oda");
} else {
System.out.println("yukiko");
}
} else {
if (sente.equals("oda")) {
System.out.println("yukiko");
} else {
System.out.println("oda");
}
}
}
}
tenten