結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2019-02-10 15:46:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 434 bytes |
コンパイル時間 | 574 ms |
コンパイル使用メモリ | 63,028 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-06 11:08:13 |
合計ジャッジ時間 | 1,560 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 24 |
ソースコード
#include<iostream> #include<stdlib.h> using namespace std; int main() { int T,x,sub_x=0; cin>>T; for(int i=0; i<T; i++){ cin>>x; if(i==0){ continue;} else{ if(x-sub_x!=1 || x-sub_x!=-1){ cout<<"F"<<endl; return 0; } else { continue; } } sub_x = x; } cout<<"T"<<endl; return EXIT_SUCCESS; }