結果
| 問題 | No.627 ランダムウォークの軌跡 | 
| コンテスト | |
| ユーザー |  ats5515 | 
| 提出日時 | 2017-09-12 13:53:06 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 475 bytes | 
| コンパイル時間 | 868 ms | 
| コンパイル使用メモリ | 91,096 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-07 17:17:35 | 
| 合計ジャッジ時間 | 2,017 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
#define int long long
signed main() {
	int T;
	cin >> T;
	vector<int> x(T);
	for (int i = 0; i < T; i++) {
		cin >> x[i];
	}
	int pos = 0;
	for (int i = 0; i < T; i++) {
		if (abs(pos - x[i]) != 1) {
			cout << "F" << endl;
			return 0;
		}
		pos = x[i];
	}
	cout << "T" << endl;
	return 0;
}
            
            
            
        