結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2019-09-29 22:30:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 1,568 ms |
コンパイル使用メモリ | 166,600 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 04:39:41 |
合計ジャッジ時間 | 2,738 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; int main(){ int t; cin >> t; int x[t+1]; x[0]=0; for(int i=1; i<t+1; i++) cin >> x[i]; for(int i=1; i<t+1; i++){ if(abs(x[i]-x[i-1])!=1){ cout << "F" << endl; return 0; } } cout << "T" << endl; return 0; }