結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
|
提出日時 | 2022-01-11 17:10:20 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 478 bytes |
コンパイル時間 | 2,507 ms |
コンパイル使用メモリ | 80,160 KB |
実行使用メモリ | 54,392 KB |
最終ジャッジ日時 | 2024-11-14 11:40:41 |
合計ジャッジ時間 | 6,169 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 5 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int i = 0; for ( ; i < s.length(); i++) { String c = String.valueOf(s.charAt(i)); if (i % 2 == 0) { if (c.equals(" ")) { break; } } } if (i == s.length()) { System.out.println("Yes"); } else { System.out.println("No"); } } }