結果
| 問題 | No.627 ランダムウォークの軌跡 | 
| コンテスト | |
| ユーザー |  dgd1724 | 
| 提出日時 | 2018-07-21 19:46:00 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 429 bytes | 
| コンパイル時間 | 520 ms | 
| コンパイル使用メモリ | 57,088 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-26 04:56:54 | 
| 合計ジャッジ時間 | 1,701 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
#include <fstream>
#include <iostream>
int main() {
	//std::ifstream inf("Text.txt");	std::cin.rdbuf(inf.rdbuf());
	
	int T, X;
	int point = 0;
	bool flg = true;
	std::cin >> T;
	for (int i = 0; i < T; i++) {
		std::cin >> X;
		if (std::abs(point - X) == 1) {
			point = X;
		}
		else {
			flg = false;
			break;
		}
	}
	if (flg) {
		std::cout << "T" << std::endl;
	}
	else {
		std::cout << "F" << std::endl;
	}
	return 0;
}
            
            
            
        