結果

問題 No.2297 Best Grouping
ユーザー bluemegane
提出日時 2023-05-13 15:19:20
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 3,630 ms
コンパイル使用メモリ 100,864 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2024-11-29 07:53:21
合計ジャッジ時間 5,164 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine().Trim());
        var p = n % 3;
        var ans = 0;
        if (p == 1) ans = 2;
        else if (p == 2) ans = 1;
        Console.WriteLine(ans);
    }
}
0