結果

問題 No.627 ランダムウォークの軌跡
ユーザー YOSHIYOSHI
提出日時 2021-03-20 19:39:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 526 bytes
コンパイル時間 3,636 ms
コンパイル使用メモリ 75,636 KB
実行使用メモリ 50,456 KB
最終ジャッジ日時 2024-05-01 06:45:31
合計ジャッジ時間 6,581 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
50,184 KB
testcase_01 AC 58 ms
50,272 KB
testcase_02 AC 59 ms
50,320 KB
testcase_03 AC 57 ms
50,456 KB
testcase_04 AC 60 ms
50,224 KB
testcase_05 AC 59 ms
50,312 KB
testcase_06 AC 57 ms
50,360 KB
testcase_07 AC 59 ms
50,028 KB
testcase_08 AC 58 ms
50,304 KB
testcase_09 AC 59 ms
50,220 KB
testcase_10 AC 56 ms
50,188 KB
testcase_11 AC 59 ms
50,184 KB
testcase_12 AC 57 ms
50,320 KB
testcase_13 AC 58 ms
50,084 KB
testcase_14 AC 59 ms
50,380 KB
testcase_15 AC 60 ms
50,288 KB
testcase_16 AC 59 ms
49,920 KB
testcase_17 AC 59 ms
50,288 KB
testcase_18 AC 59 ms
50,176 KB
testcase_19 AC 59 ms
50,016 KB
testcase_20 AC 60 ms
50,152 KB
testcase_21 AC 57 ms
50,028 KB
testcase_22 AC 56 ms
50,296 KB
testcase_23 AC 60 ms
50,308 KB
testcase_24 AC 57 ms
50,312 KB
testcase_25 AC 59 ms
50,240 KB
testcase_26 AC 58 ms
50,288 KB
testcase_27 AC 58 ms
50,312 KB
testcase_28 AC 55 ms
50,328 KB
testcase_29 AC 57 ms
50,028 KB
testcase_30 AC 58 ms
50,232 KB
testcase_31 AC 56 ms
49,924 KB
testcase_32 AC 56 ms
50,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No00000627_Main2 {
	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 = 0;
		for(int i = 0; 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