結果

問題 No.627 ランダムウォークの軌跡
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-05-16 01:34:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 1,963 ms
コンパイル使用メモリ 103,496 KB
実行使用メモリ 23,008 KB
最終ジャッジ日時 2023-09-10 21:09:39
合計ジャッジ時間 5,051 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,804 KB
testcase_01 WA -
testcase_02 AC 54 ms
20,836 KB
testcase_03 AC 53 ms
20,764 KB
testcase_04 AC 54 ms
18,744 KB
testcase_05 AC 53 ms
20,900 KB
testcase_06 AC 54 ms
20,716 KB
testcase_07 AC 54 ms
20,800 KB
testcase_08 AC 54 ms
20,800 KB
testcase_09 WA -
testcase_10 AC 54 ms
20,720 KB
testcase_11 AC 53 ms
20,836 KB
testcase_12 AC 54 ms
22,816 KB
testcase_13 WA -
testcase_14 AC 53 ms
20,992 KB
testcase_15 WA -
testcase_16 AC 54 ms
18,808 KB
testcase_17 AC 53 ms
20,732 KB
testcase_18 AC 53 ms
20,792 KB
testcase_19 WA -
testcase_20 AC 54 ms
20,752 KB
testcase_21 AC 54 ms
20,768 KB
testcase_22 AC 53 ms
20,896 KB
testcase_23 WA -
testcase_24 AC 54 ms
22,696 KB
testcase_25 AC 54 ms
22,764 KB
testcase_26 AC 54 ms
22,752 KB
testcase_27 WA -
testcase_28 AC 54 ms
20,820 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 53 ms
20,836 KB
testcase_32 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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){
        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");
                break;            
            }
            now=next;
            --i;
        }
        Console.WriteLine("T");
    }
}
0