Submission #1499138
Source Code Expand
n=int(input()) lb,ub=0,len(str(n)) while ub-lb>1: mid=(lb+ub)//2 if sum(map(int,str(9*n+9*mid)))<=9*mid: ub=mid else: lb=mid print(ub)
Submission Info
Submission Time | |
---|---|
Task | E - Increasing Numbers |
User | fts2001 |
Language | PyPy3 (2.4.0) |
Score | 0 |
Code Size | 149 Byte |
Status | TLE |
Exec Time | 2112 ms |
Memory | 134332 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 1300 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt, sample4.txt |
All | sample1.txt, sample2.txt, sample3.txt, sample4.txt, in1.txt, in10.txt, in11.txt, in12.txt, in13.txt, in14.txt, in15.txt, in16.txt, in17.txt, in18.txt, in19.txt, in2.txt, in20.txt, in21.txt, in22.txt, in23.txt, in24.txt, in25.txt, in26.txt, in27.txt, in28.txt, in29.txt, in3.txt, in30.txt, in31.txt, in4.txt, in5.txt, in500000.txt, in6.txt, in7.txt, in8.txt, in9.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | AC | 188 ms | 40172 KB |
in10.txt | TLE | 2112 ms | 132284 KB |
in11.txt | TLE | 2112 ms | 132272 KB |
in12.txt | TLE | 2111 ms | 132272 KB |
in13.txt | TLE | 2111 ms | 132272 KB |
in14.txt | TLE | 2112 ms | 132272 KB |
in15.txt | TLE | 2112 ms | 132272 KB |
in16.txt | TLE | 2112 ms | 132272 KB |
in17.txt | TLE | 2112 ms | 132340 KB |
in18.txt | TLE | 2111 ms | 134320 KB |
in19.txt | TLE | 2112 ms | 132148 KB |
in2.txt | TLE | 2112 ms | 132272 KB |
in20.txt | TLE | 2112 ms | 132272 KB |
in21.txt | TLE | 2111 ms | 132436 KB |
in22.txt | TLE | 2112 ms | 132272 KB |
in23.txt | TLE | 2112 ms | 132272 KB |
in24.txt | TLE | 2112 ms | 132272 KB |
in25.txt | TLE | 2112 ms | 132284 KB |
in26.txt | TLE | 2111 ms | 134128 KB |
in27.txt | TLE | 2112 ms | 133112 KB |
in28.txt | TLE | 2112 ms | 132296 KB |
in29.txt | TLE | 2111 ms | 132272 KB |
in3.txt | TLE | 2111 ms | 134332 KB |
in30.txt | TLE | 2112 ms | 132156 KB |
in31.txt | TLE | 2112 ms | 132272 KB |
in4.txt | TLE | 2112 ms | 132272 KB |
in5.txt | TLE | 2111 ms | 132304 KB |
in500000.txt | TLE | 2112 ms | 132272 KB |
in6.txt | TLE | 2112 ms | 132272 KB |
in7.txt | TLE | 2112 ms | 132168 KB |
in8.txt | TLE | 2112 ms | 132112 KB |
in9.txt | TLE | 2111 ms | 134320 KB |
sample1.txt | AC | 161 ms | 38256 KB |
sample2.txt | AC | 162 ms | 38256 KB |
sample3.txt | AC | 165 ms | 38256 KB |
sample4.txt | AC | 160 ms | 38256 KB |