結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
kogakudanshi
|
| 提出日時 | 2018-01-19 17:24:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| コンパイル時間 | 633 ms |
| コンパイル使用メモリ | 53,468 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 12:07:14 |
| 合計ジャッジ時間 | 1,885 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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