結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
|
提出日時 | 2024-11-02 02:02:15 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 430 bytes |
コンパイル時間 | 2,856 ms |
コンパイル使用メモリ | 243,456 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-02 02:02:20 |
合計ジャッジ時間 | 4,301 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)s; i < (int)e; ++i) #define all(a) (a).begin(), (a).end() int main() { cin.tie(nullptr); int T; cin >> T; int now = 0; char ans = 'T'; rep(i, 0, T) { int X; cin >> X; if (abs(now - X) != 1) ans = 'F'; now = X; } cout << ans << '\n'; }