結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2018-08-19 15:06:03 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 131 ms / 5,000 ms |
コード長 | 620 bytes |
コンパイル時間 | 5,036 ms |
コンパイル使用メモリ | 75,640 KB |
実行使用メモリ | 47,948 KB |
最終ジャッジ日時 | 2024-11-17 08:15:16 |
合計ジャッジ時間 | 7,193 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import java.util.*;import java.util.stream.Stream;import java.time.*;import java.time.format.*;public class No88 {public static void main(String[] args) {Scanner sc = new Scanner(System.in);String s = sc.next();int count = 0;for(int i = 0; i < 8; i++) {count += sc.next().replace("." , "").length();}if(count % 2 == 0) {System.out.println(s);}else {if("oda".equals(s)) {System.out.println("yukiko");}else {System.out.println("oda");}}}}