結果

問題 No.773 コンテスト
コンテスト
ユーザー aaa aa
提出日時 2025-12-04 11:41:07
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 817 bytes
記録
コンパイル時間 7,109 ms
コンパイル使用メモリ 169,336 KB
実行使用メモリ 29,312 KB
最終ジャッジ日時 2025-12-04 11:41:22
合計ジャッジ時間 9,386 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (103 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #
raw source code

using System.Numerics;

public class Program
{
    public static void Main()
    {
        
        //int num = int.Parse(Console.ReadLine() ?? string.Empty);
        string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
        //string str = Console.ReadLine() ?? string.Empty;

        int s = int.Parse(str[0]);
        int e = int.Parse(str[1]);
        if(s > 25||e < 23)
        {
            Console.WriteLine(3);
            return;
        }
        else if(s <= 23 && e >= 25)
        {
            Console.WriteLine(0);
            return;
        }
        int count = 3;
            for (int i = s; i <= e; i++)
            {
            if(i == 23 || i == 24 || i == 25)
            {
                count--;
            }
            }
            Console.WriteLine(count);

    }
}
0