結果

問題 No.627 ランダムウォークの軌跡
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-05-16 01:47:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 486 bytes
コンパイル時間 1,916 ms
コンパイル使用メモリ 103,976 KB
実行使用メモリ 22,848 KB
最終ジャッジ日時 2023-09-10 21:09:49
合計ジャッジ時間 4,945 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,712 KB
testcase_01 AC 53 ms
20,832 KB
testcase_02 AC 53 ms
20,892 KB
testcase_03 AC 52 ms
20,788 KB
testcase_04 AC 54 ms
20,768 KB
testcase_05 AC 53 ms
22,828 KB
testcase_06 AC 53 ms
20,732 KB
testcase_07 AC 53 ms
20,752 KB
testcase_08 AC 53 ms
20,732 KB
testcase_09 AC 54 ms
20,900 KB
testcase_10 AC 53 ms
20,840 KB
testcase_11 AC 54 ms
20,904 KB
testcase_12 AC 54 ms
22,812 KB
testcase_13 AC 54 ms
22,812 KB
testcase_14 AC 53 ms
20,776 KB
testcase_15 AC 53 ms
20,704 KB
testcase_16 AC 53 ms
20,780 KB
testcase_17 AC 54 ms
22,816 KB
testcase_18 AC 53 ms
20,676 KB
testcase_19 AC 53 ms
20,764 KB
testcase_20 AC 54 ms
20,728 KB
testcase_21 AC 54 ms
22,848 KB
testcase_22 AC 53 ms
20,908 KB
testcase_23 AC 53 ms
22,836 KB
testcase_24 AC 53 ms
20,844 KB
testcase_25 AC 54 ms
20,760 KB
testcase_26 AC 52 ms
18,748 KB
testcase_27 AC 54 ms
22,748 KB
testcase_28 AC 53 ms
22,776 KB
testcase_29 AC 53 ms
20,848 KB
testcase_30 AC 53 ms
18,736 KB
testcase_31 AC 53 ms
22,828 KB
testcase_32 AC 53 ms
22,740 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class No627{
    static void Main(string[] args){
        Walk();
    }
    static void Walk(){
        var i=Int32.Parse(Console.ReadLine());
        var now=0;
        var next=0;
        while(i>0){
            next=Int32.Parse(Console.ReadLine());
            if((Math.Abs(now-next))!=1){
                Console.WriteLine("F");
                return;            
            }
            now=next;
            --i;
        }
        Console.WriteLine("T");
    }
}
0