結果
問題 | No.273 回文分解 |
ユーザー | ルッツファン |
提出日時 | 2015-11-28 03:15:01 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 912 bytes |
コンパイル時間 | 3,412 ms |
コンパイル使用メモリ | 72,004 KB |
実行使用メモリ | 51,124 KB |
最終ジャッジ日時 | 2023-08-25 01:27:29 |
合計ジャッジ時間 | 6,377 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
49,260 KB |
testcase_01 | AC | 45 ms
49,416 KB |
testcase_02 | AC | 43 ms
49,284 KB |
testcase_03 | WA | - |
testcase_04 | AC | 43 ms
49,244 KB |
testcase_05 | WA | - |
testcase_06 | AC | 43 ms
49,268 KB |
testcase_07 | AC | 43 ms
49,228 KB |
testcase_08 | WA | - |
testcase_09 | AC | 43 ms
49,264 KB |
testcase_10 | AC | 42 ms
49,276 KB |
testcase_11 | AC | 43 ms
49,252 KB |
testcase_12 | AC | 43 ms
49,652 KB |
testcase_13 | AC | 43 ms
49,228 KB |
testcase_14 | WA | - |
testcase_15 | AC | 43 ms
49,288 KB |
testcase_16 | AC | 43 ms
49,464 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 44 ms
49,228 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 43 ms
49,292 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 43 ms
49,112 KB |
testcase_26 | AC | 45 ms
49,336 KB |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | AC | 45 ms
49,268 KB |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
ソースコード
package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class yukicoder010 { public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String tes = null; try { tes = br.readLine(); } catch (IOException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } String tre; for(int i=1;i<tes.length();i++){ tre = tes.substring(0, tes.length() - i); StringBuffer sb = new StringBuffer(tre); sb.reverse(); StringBuffer sc = new StringBuffer(tre); // System.out.println(i+":"+sb.toString()); // System.out.println(i+":"+sc.toString()); if(sb.toString().equals(sc.toString())){ System.out.println(sb.length()); System.exit(0); } } } }