結果
| 問題 | No.627 ランダムウォークの軌跡 | 
| コンテスト | |
| ユーザー |  Yut176 | 
| 提出日時 | 2018-01-16 17:22:29 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 2,000 ms | 
| コード長 | 552 bytes | 
| コンパイル時間 | 791 ms | 
| コンパイル使用メモリ | 85,060 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-24 04:40:16 | 
| 合計ジャッジ時間 | 1,858 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
using namespace std;
int mod = 1e9+7;
int main() {
  int t;cin >> t;
  vector<int> x(t);
  cin >> x[0];
  if( abs(x[0]) != 1 ){
    cout << "F" << endl;
    return 0;
  }
  for(int i=1; i<t; i++){
    cin >> x[i];
    if( abs(x[i]-x[i-1]) != 1 ){
      cout << "F" << endl;
      return 0;
    }
  }
  cout << "T" << endl;
  return 0;
}
// EOF
            
            
            
        