結果
| 問題 | No.627 ランダムウォークの軌跡 |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-25 16:23:12 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 520 bytes |
| 記録 | |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 38,372 KB |
| 最終ジャッジ日時 | 2026-02-22 13:24:53 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 33 |
ソースコード
#include <stdio.h>
#include <stdbool.h>
void main(void){
int n = 0;
scanf("%d",&n);
int positionList[n+1];
positionList[0] = 0;
for(int i = 1 ; i <= n ; i++){
scanf("%d",&positionList[i]);
}
bool moveFlg = true;
for(int i = 0 ; i < n ; i++){
if(positionList[i+1]-positionList[i] != 1 && positionList[i+1]-positionList[i] != -1 ){
moveFlg = false;
break;
}
}
if(moveFlg){
printf("T");
}else{
printf("F");
}
}
Maeda