提出 #799237
ソースコード 拡げる
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());
}
}
}
}
提出情報
ジャッジ結果
| セット名 | Sample | All | ||||||
|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 100 | ||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |