結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2020-11-04 15:26:01 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 115 ms / 5,000 ms |
コード長 | 630 bytes |
コンパイル時間 | 2,101 ms |
コンパイル使用メモリ | 75,884 KB |
実行使用メモリ | 54,404 KB |
最終ジャッジ日時 | 2024-07-22 09:57:47 |
合計ジャッジ時間 | 4,416 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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");}}}}