結果
問題 | No.88 次はどっちだ |
ユーザー | jimano |
提出日時 | 2018-02-04 17:34:32 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 651 bytes |
コンパイル時間 | 3,602 ms |
コンパイル使用メモリ | 80,668 KB |
実行使用メモリ | 51,160 KB |
最終ジャッジ日時 | 2023-09-12 16:03:57 |
合計ジャッジ時間 | 4,526 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
50,756 KB |
testcase_01 | AC | 55 ms
51,000 KB |
testcase_02 | AC | 57 ms
51,108 KB |
testcase_03 | AC | 56 ms
50,688 KB |
testcase_04 | AC | 55 ms
50,564 KB |
testcase_05 | AC | 55 ms
50,592 KB |
testcase_06 | AC | 54 ms
50,996 KB |
testcase_07 | AC | 54 ms
50,756 KB |
testcase_08 | AC | 53 ms
50,560 KB |
testcase_09 | AC | 56 ms
51,160 KB |
testcase_10 | AC | 54 ms
50,836 KB |
ソースコード
package me.yukicoder.lv1_5; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0088 { public static void main(String[] args) { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String sente = br.readLine(); String gote = sente.equals("oda") ? "yukiko" : "oda"; StringBuilder sb = new StringBuilder(); for (int i = 0; i < 8; i++) { sb.append(br.readLine()); } long teban = sb.chars().filter(r -> r != '.').count() - 4; System.out.println(teban % 2 == 0 ? sente : gote); } catch (IOException e) { e.printStackTrace(); } } }