結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2016-01-13 11:36:20 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 665 bytes |
コンパイル時間 | 3,531 ms |
コンパイル使用メモリ | 76,504 KB |
実行使用メモリ | 56,272 KB |
最終ジャッジ日時 | 2024-09-19 18:55:47 |
合計ジャッジ時間 | 5,736 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 4 |
ソースコード
interface Delete{ static void delete(){ } } class DeletePeriod implements Delete{ public static void delete(String s){ s.replaceAll("\\.",""); } } public class No_88{ public static void main(String[] args){ java.util.Scanner sc = new java.util.Scanner(System.in); String first,second,str; first = sc.next(); second = ""; str = ""; if(first.equals("oda")){ second = "yukiko"; } else if(first.equals("yukiko")){ second = "oda"; } for(int i = 0;i < 8;i++){ str += sc.next(); } DeletePeriod.delete(str); if(str.length()%2 == 0){ System.out.println(first); } else{ System.out.println(second); } } }