結果
| 問題 | No.627 ランダムウォークの軌跡 | 
| コンテスト | |
| ユーザー |  hiyori | 
| 提出日時 | 2019-02-10 15:58:07 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 353 bytes | 
| コンパイル時間 | 550 ms | 
| コンパイル使用メモリ | 63,232 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-06 11:29:07 | 
| 合計ジャッジ時間 | 1,457 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
 #include<iostream>
 #include<stdlib.h>
 using namespace std;
 int main()
 {
    int T,x,sub_x=0,flag=0;
    cin>>T;
    for(int i=0; i<T; i++){
        cin>>x;
            if(x-sub_x==1 || x-sub_x==-1){
                sub_x = x;
            }
            else { cout<<'F'<<endl; return 0; }
        }
    cout<<'T'<<endl;
    return EXIT_SUCCESS;
 }
            
            
            
        