結果
問題 | No.627 ランダムウォークの軌跡 |
ユーザー | jimano |
提出日時 | 2018-01-23 23:04:20 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 688 bytes |
コンパイル時間 | 3,214 ms |
コンパイル使用メモリ | 71,512 KB |
実行使用メモリ | 51,752 KB |
最終ジャッジ日時 | 2023-08-26 23:56:54 |
合計ジャッジ時間 | 6,223 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | AC | 42 ms
49,232 KB |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | AC | 42 ms
49,228 KB |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | AC | 44 ms
49,072 KB |
testcase_14 | RE | - |
testcase_15 | AC | 43 ms
49,372 KB |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | AC | 42 ms
47,416 KB |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | RE | - |
testcase_23 | AC | 42 ms
49,284 KB |
testcase_24 | RE | - |
testcase_25 | RE | - |
testcase_26 | RE | - |
testcase_27 | AC | 42 ms
49,544 KB |
testcase_28 | RE | - |
testcase_29 | AC | 42 ms
49,092 KB |
testcase_30 | AC | 43 ms
49,136 KB |
testcase_31 | RE | - |
testcase_32 | AC | 41 ms
49,236 KB |
ソースコード
package me.yukicoder.lv1; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class No0627 { public static void main(String[] args) { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { int T = Integer.parseInt(br.readLine()); int[] x = new int[T + 1]; x[0] = 0; for (int i = 1; i < T + 1; i++) { x[i] = Integer.parseInt(br.readLine()); } for (int i = 0; i < T + 1; i++) { if (Math.abs(x[i] - x[i + 1]) != 1) { System.out.println("F"); return; } } System.out.println("T"); } catch (IOException e) { e.printStackTrace(); } } }