結果
問題 |
No.627 ランダムウォークの軌跡
|
ユーザー |
![]() |
提出日時 | 2018-05-10 12:45:25 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 544 bytes |
コンパイル時間 | 3,474 ms |
コンパイル使用メモリ | 78,232 KB |
実行使用メモリ | 41,516 KB |
最終ジャッジ日時 | 2024-06-28 02:56:40 |
合計ジャッジ時間 | 8,850 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 32 WA * 1 |
ソースコード
import java.util.ArrayList; import java.util.Scanner; public class Rumdum { public static void main(String[] args) { ArrayList<Integer> list = new ArrayList<>(); Scanner scanner = new Scanner(System.in); int T = scanner.nextInt(); int buff = scanner.nextInt(); if(buff == 0){ System.out.println("F"); return; } for(int i=0;i<T-1;i++){ int t = scanner.nextInt(); if(buff+1 == t || buff-1 == t){ buff = t; }else{ System.out.println("F"); return; } } System.out.println("T"); return; } }