結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2018-03-06 08:08:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 525 bytes |
コンパイル時間 | 677 ms |
コンパイル使用メモリ | 79,836 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 20:27:10 |
合計ジャッジ時間 | 1,753 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 WA * 2 |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<cmath> #include<iomanip> #include<cstring> #include<map> #include<vector> #include<queue> #include<utility> using namespace std; typedef long long int ll; int main(){ int t, x[100]; cin >> t; for(int i=0; i<t; i++){ cin >> x[i]; } for(int i=0; i<t-1; i++){ if(x[0]==0){ cout << "F" << endl; return 0; } else if(abs(x[i]-x[i+1])!=1){ cout << "F" << endl; return 0; } } cout << "T" << endl; return 0; }