結果

問題 No.627 ランダムウォークの軌跡
ユーザー tsunabittsunabit
提出日時 2018-07-15 14:45:45
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 536 bytes
コンパイル時間 4,520 ms
コンパイル使用メモリ 73,332 KB
実行使用メモリ 56,428 KB
最終ジャッジ日時 2023-08-06 06:48:07
合計ジャッジ時間 10,694 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,912 KB
testcase_01 AC 121 ms
56,108 KB
testcase_02 AC 123 ms
55,468 KB
testcase_03 AC 121 ms
55,808 KB
testcase_04 AC 122 ms
55,792 KB
testcase_05 AC 121 ms
55,880 KB
testcase_06 AC 124 ms
56,428 KB
testcase_07 AC 123 ms
55,800 KB
testcase_08 AC 123 ms
55,876 KB
testcase_09 AC 124 ms
56,192 KB
testcase_10 AC 125 ms
56,164 KB
testcase_11 AC 123 ms
55,948 KB
testcase_12 AC 125 ms
55,968 KB
testcase_13 AC 124 ms
55,712 KB
testcase_14 AC 124 ms
55,780 KB
testcase_15 AC 126 ms
55,808 KB
testcase_16 AC 133 ms
55,792 KB
testcase_17 AC 133 ms
55,856 KB
testcase_18 AC 131 ms
56,040 KB
testcase_19 AC 133 ms
56,284 KB
testcase_20 AC 128 ms
55,788 KB
testcase_21 AC 130 ms
56,380 KB
testcase_22 AC 129 ms
56,084 KB
testcase_23 AC 130 ms
55,756 KB
testcase_24 AC 133 ms
55,800 KB
testcase_25 AC 135 ms
55,772 KB
testcase_26 AC 131 ms
55,844 KB
testcase_27 AC 131 ms
55,764 KB
testcase_28 AC 128 ms
56,224 KB
testcase_29 AC 127 ms
56,180 KB
testcase_30 AC 120 ms
55,960 KB
testcase_31 AC 119 ms
56,012 KB
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No627 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		int[] x = new int[t];
		for(int i = 0 ; i < t; i++) {
			x[i] = sc.nextInt();
		}
		if(x[0] == 0) {
			System.out.println("F");
			return;
		}
		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");
	}
}
0