結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2015-12-23 13:43:49 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 48 ms / 5,000 ms |
コード長 | 550 bytes |
コンパイル時間 | 1,951 ms |
コンパイル使用メモリ | 74,400 KB |
実行使用メモリ | 36,908 KB |
最終ジャッジ日時 | 2024-09-18 21:43:47 |
合計ジャッジ時間 | 3,016 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.io.*;import java.util.*;class Main88 {public static void out (Object o) {System.out.println(o);}public static void main (String[] args) throws IOException {BufferedReader br =new BufferedReader(new InputStreamReader(System.in));String name = br.readLine();int cnt = 0;for (int i = 0; i < 8; i++) {String line = br.readLine();for (int j = 0; j < 8; j++) {cnt = line.charAt(j) != '.' ? cnt + 1 : cnt;}}out(cnt % 2 == 0 ? name : name.equals("oda") ? "yukiko" : "oda");}}