結果
| 問題 |
No.627 ランダムウォークの軌跡
|
| コンテスト | |
| ユーザー |
Kutimoti_T
|
| 提出日時 | 2018-01-05 21:24:23 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 452 bytes |
| コンパイル時間 | 816 ms |
| コンパイル使用メモリ | 71,260 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 06:16:14 |
| 合計ジャッジ時間 | 1,699 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <set>
#include <map>
#include <cmath>
using namespace std;
int main()
{
int b;
int n;
int N;
cin >> N;
b = 0;
for(int i = 0;i < N;i++)
{
cin >> n;
if(abs(n - b) != 1)
{
cout << "F" << endl;
return 0;
}
b = n;
}
cout << "T" << endl;
return 0;
}
Kutimoti_T