結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
kogakudanshi
|
| 提出日時 | 2018-01-19 17:14:03 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 236 bytes |
| コンパイル時間 | 459 ms |
| コンパイル使用メモリ | 53,540 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-24 12:06:45 |
| 合計ジャッジ時間 | 1,560 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 RE * 10 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int n,p = 0,x;
cin >> n;
for(int t = 0;t<n;t++){
cin >> x;
if(x == p||!(p-x==1||p-x==-1)){
cout << "F";
return 1;
}
p = x;
}
cout << "T";
return 0;
}
kogakudanshi