結果

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

ソースコード

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=0; i<t-1; i++){
		if(x[i+1]-x[i]!=1 || x[i+1]-x[i]!=-1){
			cout << 'F' << endl; 
			return 0;
		} 
	}
	cout << 'T' << endl;
	return 0;
}
0