結果
| 問題 | No.627 ランダムウォークの軌跡 | 
| コンテスト | |
| ユーザー |  eggshell | 
| 提出日時 | 2018-01-15 16:59:08 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 307 bytes | 
| コンパイル時間 | 494 ms | 
| コンパイル使用メモリ | 54,644 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-24 02:40:00 | 
| 合計ジャッジ時間 | 1,667 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
int main() {
    int t,i,x1,x2;
    x1 = 0;
    string a = "T";
    cin >> t;
    for(i=0; i<t; i++) {
        cin >> x2;
        if(x1!=x2+1 && x1!=x2-1) {
            a = "F";
        }
        x1 = x2;
    }
    cout << a;
}
            
            
            
        