結果
| 問題 | No.627 ランダムウォークの軌跡 |
| コンテスト | |
| ユーザー |
kogakudanshi
|
| 提出日時 | 2018-01-19 17:24:45 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 484 ms |
| コンパイル使用メモリ | 68,716 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-30 08:14:19 |
| 合計ジャッジ時間 | 3,452 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 3 RE * 7 |
ソースコード
#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)
if (p - x != 1 || p - x != -1)
{
cout << "F";
return 1;
}
p = x;
}
cout << "T";
return 0;
}
kogakudanshi