Submission #1869524


Source Code Expand

using System.Threading.Tasks;

public class Program
{
    public static void Main()
    {
        string[] s = Console.ReadLine().Split(' ');
        long a = long.Parse(s[0]);
        long b = long.Parse(s[1]);
        long x = long.Parse(s[2]);
        long ans = 0;
        ans = (b / x) - ((a - 1) / x);
        if (a == 0) ans += 1;
        Console.WriteLine(ans);
    }
}

Submission Info

Submission Time
Task B - Between a and b ...
User chika_haru
Language C# (Mono 4.6.2.0)
Score 0
Code Size 394 Byte
Status CE

Compile Error

./Main.cs(7,22): error CS0103: The name `Console' does not exist in the current context
./Main.cs(14,9): error CS0103: The name `Console' does not exist in the current context