結果
| 問題 | No.627 ランダムウォークの軌跡 |
| コンテスト | |
| ユーザー |
ebicochineal
|
| 提出日時 | 2018-01-05 21:36:57 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 401 bytes |
| 記録 | |
| コンパイル時間 | 1,468 ms |
| コンパイル使用メモリ | 179,668 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-29 08:03:12 |
| 合計ジャッジ時間 | 2,022 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 WA * 3 |
ソースコード
#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;
}
ebicochineal