結果
| 問題 | No.627 ランダムウォークの軌跡 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-09 21:31:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 442 bytes |
| 記録 | |
| コンパイル時間 | 581 ms |
| コンパイル使用メモリ | 60,232 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-08 13:05:39 |
| 合計ジャッジ時間 | 1,790 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 WA * 2 |
ソースコード
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
using namespace std;
int main(void)
{
int t;
cin >> t;
int c[t];
for(int i = 0; i < t; i++)
cin >> c[i];
for(int i = 1; i < t; i++)
{
if(c[i-1]-c[i] != 1 && c[i-1]-c[i] != -1)
{
printf("F\n");
return 0;
}
}
printf("T\n");
return 0;
}