結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-05 21:43:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 495 bytes |
| コンパイル時間 | 707 ms |
| コンパイル使用メモリ | 66,884 KB |
| 最終ジャッジ日時 | 2025-01-05 07:02:25 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 WA * 2 |
ソースコード
#include <iostream>
using namespace std;
int t;
int x[110];
int main() {
cin.tie(NULL);
ios_base::sync_with_stdio(false);
cin >> t;
int pos;
cin >> pos;
if (abs(pos) != 1) {
cout << 'F' << endl;
return 0;
}
t--;
while (t--) {
int a;
cin >> a;
if (abs(pos - a) > 1) {
cout << 'F' << endl;
return 0;
}
pos = a;
}
cout << 'T' << endl;
}