結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2018-01-16 17:21:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 485 bytes |
コンパイル時間 | 679 ms |
コンパイル使用メモリ | 84,780 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 04:40:12 |
合計ジャッジ時間 | 1,632 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 WA * 2 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<cstdio> #include<cstdlib> #include<string> #include<sstream> #include<cmath> #include<numeric> #include<map> #include<stack> #include<queue> using namespace std; int mod = 1e9+7; int main() { int t;cin >> t; vector<int> x(t); cin >> x[0]; for(int i=1; i<t; i++){ cin >> x[i]; if( abs(x[i]-x[i-1]) != 1 ){ cout << "F" << endl; return 0; } } cout << "T" << endl; return 0; } // EOF