結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
ninoinui
|
| 提出日時 | 2020-01-21 00:45:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 240 bytes |
| コンパイル時間 | 1,625 ms |
| コンパイル使用メモリ | 165,856 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 23:28:06 |
| 合計ジャッジ時間 | 2,894 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int now = 0;
char ans = 'T';
for (int i = 0, x; i < N && cin >> x; i++) {
if (abs(now - x) != 1) ans = 'F';
now = x;
}
cout << ans << "\n";
}
ninoinui