結果

問題 No.627 ランダムウォークの軌跡
ユーザー YOSHIYOSHI
提出日時 2021-03-20 19:34:53
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 613 bytes
コンパイル時間 3,301 ms
コンパイル使用メモリ 75,784 KB
実行使用メモリ 50,284 KB
最終ジャッジ日時 2024-05-01 06:42:14
合計ジャッジ時間 5,889 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
49,996 KB
testcase_01 AC 47 ms
49,908 KB
testcase_02 AC 47 ms
50,140 KB
testcase_03 AC 48 ms
50,160 KB
testcase_04 AC 49 ms
49,928 KB
testcase_05 AC 47 ms
50,020 KB
testcase_06 AC 47 ms
50,016 KB
testcase_07 AC 47 ms
50,200 KB
testcase_08 AC 46 ms
50,136 KB
testcase_09 AC 46 ms
50,132 KB
testcase_10 AC 47 ms
50,144 KB
testcase_11 AC 46 ms
50,080 KB
testcase_12 AC 48 ms
50,192 KB
testcase_13 AC 48 ms
49,788 KB
testcase_14 AC 49 ms
50,040 KB
testcase_15 AC 49 ms
50,124 KB
testcase_16 AC 47 ms
50,168 KB
testcase_17 AC 48 ms
49,828 KB
testcase_18 AC 47 ms
50,044 KB
testcase_19 AC 48 ms
50,284 KB
testcase_20 AC 47 ms
50,104 KB
testcase_21 AC 46 ms
49,836 KB
testcase_22 AC 50 ms
50,032 KB
testcase_23 AC 50 ms
50,000 KB
testcase_24 AC 50 ms
50,240 KB
testcase_25 AC 51 ms
50,180 KB
testcase_26 AC 51 ms
50,112 KB
testcase_27 AC 47 ms
50,264 KB
testcase_28 AC 46 ms
50,136 KB
testcase_29 AC 46 ms
50,068 KB
testcase_30 AC 46 ms
50,064 KB
testcase_31 AC 53 ms
50,152 KB
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000627_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		int t = Integer.parseInt(br.readLine());
		int x = Integer.parseInt(br.readLine());
		if(x == 0) {
			System.out.println("F");
			return;
		}
		for(int i = 1; i < t; i++) {
			int n = Integer.parseInt(br.readLine());
			if(x - n != -1 && x - n != 1) {
				System.out.println("F");
				return;
			}
			x = n;
		}
		System.out.println("T");
	}
}
0