結果

問題 No.682 Average
ユーザー No
提出日時 2018-07-10 00:19:28
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 419 bytes
コンパイル時間 800 ms
コンパイル使用メモリ 103,168 KB
実行使用メモリ 18,048 KB
最終ジャッジ日時 2024-07-18 03:00:02
合計ジャッジ時間 1,755 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
namespace y
{
    class Program
    {
        static void Main(string[] args)
        {
            var ss = Console.ReadLine().Split();
            var a = int.Parse(ss[0]);
            var b = int.Parse(ss[1]);

            int c = 0;
            for (int i = a; i <= b; i++)
            {
                if ((a + b + i) % 3 == 0) c++;
            }

            Console.WriteLine(c);
        }
    }
}
0