結果

問題 No.627 ランダムウォークの軌跡
ユーザー ilplrr
提出日時 2018-02-18 16:07:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 57,928 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-24 13:02:41
合計ジャッジ時間 1,459 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main()
{
    int T; cin >> T;

    int t = 0;
    for (int i = 0; i < T; i++) {
        int p; cin >> p;
        if (abs(p - t) != 1) return cout << "F" << endl, 0;
        t = p;
    }
    cout << "T" << endl;

    return 0;
}
0