結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2018-01-05 23:33:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 662 ms |
コンパイル使用メモリ | 70,108 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-23 07:20:53 |
合計ジャッジ時間 | 1,704 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 22 |
ソースコード
#include <iostream> #include <map> using namespace std; int main() { int T; cin >> T; int x[101]; for(int i = 0; i < T; i++) cin >> x[i]; char ans = 'T'; if(abs(x[0]) != 1) ans = 'F'; for(int i = 0;i < T - 1; i++) if(abs(x[i] - x[1 + 1]) != 1) ans = 'F'; cout << ans << endl;; }