結果
| 問題 | No.627 ランダムウォークの軌跡 | 
| コンテスト | |
| ユーザー |  misk703 | 
| 提出日時 | 2018-05-10 12:47:29 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 141 ms / 2,000 ms | 
| コード長 | 465 bytes | 
| コンパイル時間 | 3,226 ms | 
| コンパイル使用メモリ | 74,868 KB | 
| 実行使用メモリ | 54,472 KB | 
| 最終ジャッジ日時 | 2024-06-28 02:56:50 | 
| 合計ジャッジ時間 | 8,947 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
import java.util.ArrayList;
import java.util.Scanner;
public class Rumdum {
    public static void main(String[] args) {
	ArrayList<Integer> list = new ArrayList<>();
	Scanner scanner = new Scanner(System.in);
	int T = scanner.nextInt();
	int buff = 0;
	for(int i=0;i<T;i++){
	    int t = scanner.nextInt();
	    if(buff+1 == t || buff-1 == t){
		buff = t;
	    }else{
		System.out.println("F");
		return;
	    }
	}
	System.out.println("T");
	return;
    }
}
            
            
            
        