結果

問題 No.627 ランダムウォークの軌跡
ユーザー ebicochinealebicochineal
提出日時 2018-01-05 21:36:57
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 401 bytes
コンパイル時間 1,995 ms
コンパイル使用メモリ 165,924 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 06:23:20
合計ジャッジ時間 2,932 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    bool b = true;
    int n;
    vector<int> v;
    cin >> n;
    for (int i = 1; i < n + 1; ++i) {
        int t;
        cin >> t;
        if ((abs(t) % 2 > 0) != (i % 2 > 0)) {
            b = false;
            break;
        }
    }
    cout << (b ? 'T' : 'F') << endl;
    return 0;
}
0