結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
dgd1724
|
| 提出日時 | 2018-07-21 19:43:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 435 bytes |
| コンパイル時間 | 529 ms |
| コンパイル使用メモリ | 57,084 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 04:56:52 |
| 合計ジャッジ時間 | 1,383 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 WA * 2 |
ソースコード
#include <fstream>
#include <iostream>
int main() {
//std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf());
int T, X;
int point = 0;
bool flg = false;
std::cin >> T;
for (int i = 0; i < T; i++) {
std::cin >> X;
if (std::abs(point - X) == 1) {
point = X;
flg = true;
}
else {
flg = false;
}
}
if (flg) {
std::cout << "T" << std::endl;
}
else {
std::cout << "F" << std::endl;
}
return 0;
}
dgd1724