Submission #798430


Source Code Expand

# -*- coding: utf-8 -*-
"""
Created on Sat Jul  9 21:15:48 2016

@author: vinmei
"""

A,K = map(int,input().split())

target =  2000000000000
day = 0
money = A

while True:
    money = 1 + (K+1) * money
    day = day + 1
    
    if money > target:
        break

print(day)

Submission Info

Submission Time
Task A - 2兆円
User thvinmei
Language Python (3.4.3)
Score 0
Code Size 294 Byte
Status WA
Exec Time 2106 ms
Memory 3064 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 2
TLE × 1
AC × 11
WA × 1
TLE × 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 TLE 2106 ms 3064 KiB
02.txt AC 36 ms 3064 KiB
03.txt AC 38 ms 3064 KiB
04.txt AC 37 ms 3064 KiB
05.txt WA 37 ms 3064 KiB
06.txt TLE 2102 ms 3064 KiB
07.txt TLE 2106 ms 3064 KiB
08.txt AC 36 ms 3064 KiB
09.txt AC 37 ms 3064 KiB
10.txt AC 38 ms 3064 KiB
11.txt AC 38 ms 3064 KiB
12.txt AC 38 ms 3064 KiB
13.txt AC 37 ms 3064 KiB
s1.txt AC 37 ms 3064 KiB
s2.txt AC 36 ms 3064 KiB
s3.txt TLE 2105 ms 3064 KiB