結果
問題 | No.88 次はどっちだ |
ユーザー | kou6839 |
提出日時 | 2014-12-08 19:27:31 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 585 bytes |
コンパイル時間 | 2,285 ms |
コンパイル使用メモリ | 71,704 KB |
実行使用メモリ | 55,980 KB |
最終ジャッジ日時 | 2023-09-02 11:43:45 |
合計ジャッジ時間 | 4,573 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 126 ms
55,832 KB |
testcase_01 | WA | - |
testcase_02 | AC | 125 ms
55,836 KB |
testcase_03 | AC | 123 ms
55,980 KB |
testcase_04 | AC | 123 ms
55,760 KB |
testcase_05 | AC | 126 ms
55,500 KB |
testcase_06 | AC | 129 ms
55,836 KB |
testcase_07 | AC | 124 ms
55,756 KB |
testcase_08 | AC | 124 ms
55,680 KB |
testcase_09 | WA | - |
testcase_10 | AC | 128 ms
55,892 KB |
ソースコード
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sen = sc.next(); char[][] ban = new char[8][8]; for(int i=0;i<8;i++){ String temp=sc.next(); ban[i]=temp.toCharArray(); } int count=0; for(int i=0;i<8;i++){ for(int j=0;j<8;j++){ if(ban[i][j]!='.') count++; } } if(count%2==0){ System.out.println(sen); }else{ if(sen=="oda"){ System.out.println("yukiko"); }else{ System.out.println("oda"); } } } }