結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
|
提出日時 | 2021-03-20 19:39:03 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 526 bytes |
コンパイル時間 | 4,404 ms |
コンパイル使用メモリ | 74,948 KB |
実行使用メモリ | 50,376 KB |
最終ジャッジ日時 | 2024-11-21 08:58:19 |
合計ジャッジ時間 | 7,317 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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"); } }