結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
kogakudanshi
|
| 提出日時 | 2018-01-19 17:41:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 492 ms |
| コンパイル使用メモリ | 54,392 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 12:07:43 |
| 合計ジャッジ時間 | 1,329 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
#include <iostream>
using namespace std;
int main() {
int n, p = 0, x;
cin >> n;
char res = 'T';
for (int t = 0; t<n; t++) {
cin >> x;
if (x == p || abs(p - x) != 1)res = 'F';
p = x;
}
cout << res <<endl;
return 0;
}
kogakudanshi