結果

問題 No.1893 Cycle
ユーザー cccccc
提出日時 2022-07-26 14:14:41
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 381 bytes
コンパイル時間 12,647 ms
コンパイル使用メモリ 145,268 KB
実行使用メモリ 163,968 KB
最終ジャッジ日時 2023-09-23 06:39:06
合計ジャッジ時間 12,108 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
28,720 KB
testcase_01 AC 50 ms
28,368 KB
testcase_02 AC 52 ms
28,672 KB
testcase_03 AC 51 ms
30,572 KB
testcase_04 AC 51 ms
28,516 KB
testcase_05 AC 50 ms
28,520 KB
testcase_06 AC 51 ms
30,416 KB
testcase_07 AC 52 ms
28,444 KB
testcase_08 AC 51 ms
28,644 KB
testcase_09 AC 50 ms
30,372 KB
testcase_10 AC 50 ms
28,444 KB
testcase_11 AC 50 ms
28,576 KB
testcase_12 AC 51 ms
28,448 KB
testcase_13 AC 50 ms
28,340 KB
testcase_14 AC 50 ms
28,196 KB
testcase_15 AC 49 ms
28,444 KB
testcase_16 AC 54 ms
28,432 KB
testcase_17 AC 52 ms
28,460 KB
testcase_18 AC 52 ms
28,508 KB
testcase_19 AC 51 ms
28,348 KB
testcase_20 AC 51 ms
28,436 KB
testcase_21 AC 51 ms
30,584 KB
testcase_22 AC 52 ms
28,720 KB
testcase_23 AC 53 ms
163,968 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 169 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        var inp = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var s = inp[0];
        var e = inp[1];
        if((s + 4) % 12 != e)
        {
            Console.WriteLine((s + 4) % 12);
        }
        else
        {
            Console.WriteLine((s + 8) % 12);
        }
    }
}
0