Submission #799237


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            
            long i = 0;
            bool p = true;
            string z = Console.ReadLine();
            string[] v = z.Split(' ');
            long x = long.Parse(v[0]);
            long y = long.Parse(v[1]);
            double ans = (double)Math.Log(2000000000001/(1+x*y))/Math.Log(y+1);
            Int64 l;
            if (y == 0)
            {
                Console.WriteLine((2000000000000-x).ToString());
            }
            else
            {
                
                    l = (Int64)ans + 2;
                
                Console.WriteLine(l.ToString());
            }
        }
    }
}

Submission Info

Submission Time
Task A - 2兆円
User udonudon
Language C# (Mono 4.6.2.0)
Score 0
Code Size 888 Byte
Status WA
Exec Time 39 ms
Memory 2776 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 3
AC × 12
WA × 4
Set Name Test Cases
Sample s1.txt, s2.txt, s3.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt AC 35 ms 2776 KiB
02.txt AC 32 ms 2648 KiB
03.txt WA 32 ms 2648 KiB
04.txt WA 32 ms 2648 KiB
05.txt WA 30 ms 2648 KiB
06.txt AC 31 ms 2648 KiB
07.txt AC 30 ms 2648 KiB
08.txt AC 30 ms 2648 KiB
09.txt WA 33 ms 2648 KiB
10.txt AC 30 ms 2648 KiB
11.txt AC 36 ms 2648 KiB
12.txt AC 39 ms 2648 KiB
13.txt AC 32 ms 2648 KiB
s1.txt AC 32 ms 2648 KiB
s2.txt AC 30 ms 2648 KiB
s3.txt AC 30 ms 2648 KiB