結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2019-07-16 09:39:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 374 bytes |
コンパイル時間 | 1,732 ms |
コンパイル使用メモリ | 169,264 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-30 01:26:33 |
合計ジャッジ時間 | 3,657 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 RE * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; vector<int> x(t); x[0] = 0; for (int i = 1; i <= t; ++i) { cin >> x[i]; } for (int i = 0; i < t; ++i) { if (abs(x[i + 1] - x[i]) != 1) { cout << "F" << endl; return 0; } } cout << "T" << endl; return 0; }