結果
| 問題 | No.627 ランダムウォークの軌跡 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-20 19:39:03 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 526 bytes |
| 記録 | |
| コンパイル時間 | 3,129 ms |
| コンパイル使用メモリ | 81,140 KB |
| 実行使用メモリ | 39,372 KB |
| 最終ジャッジ日時 | 2026-05-15 13:35:07 |
| 合計ジャッジ時間 | 5,314 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
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");
}
}