結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
kogakudanshi
|
| 提出日時 | 2018-01-19 17:10:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 420 ms |
| コンパイル使用メモリ | 53,496 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 12:06:44 |
| 合計ジャッジ時間 | 1,390 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 RE * 32 |
ソースコード
#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||!(p-x==1||p-x==-1)){
cout << "F";
return 1;
}
}
cout << "T";
return 0;
}
kogakudanshi