結果
問題 | No.627 ランダムウォークの軌跡 |
ユーザー |
|
提出日時 | 2018-03-28 21:38:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 477 ms |
コンパイル使用メモリ | 56,016 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-25 13:17:58 |
合計ジャッジ時間 | 1,467 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#include<iostream> using namespace std; int main(){ int n,tmp=0,p; cin >> n ; int a[n]; for(int i=0; i<n; i++){ cin >> a[i]; } for(int i=0; i<n; i++){ p = a[i]; if(abs(p-tmp)!=1){ cout << "F" << endl; return 0; } tmp = p; } cout << "T" << endl; return 0; }