結果

問題 No.627 ランダムウォークの軌跡
ユーザー losiz17
提出日時 2018-02-19 08:51:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 576 ms
コンパイル使用メモリ 63,516 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 13:03:31
合計ジャッジ時間 1,461 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
	int t;
	cin >> t;
	int x[t];
	for(int i=0; i<t; i++){
		cin >> x[i];
	}

	for(int i=1; i<=t; i++){
		if(abs(x[i]-x[i-1])!=1){
			cout << 'F' << endl;
			return 0;
		}
	}
	cout << 'T' << endl;
	return 0;
}
0