結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2019-01-21 23:11:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 1,506 ms |
コンパイル使用メモリ | 166,916 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 13:23:24 |
合計ジャッジ時間 | 2,544 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int T,now=0; cin>>T; for(int i = 0 ; i < T ; i++){ int x; cin>>x; if(abs(x-now)==1)now=x; else{ cout<<'F'<<"\n"; return 0; } } cout<<'T'<<"\n"; return 0; }