Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 19th, 2018
78
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
def bla(m,s):
n=(s+7)//9
sl=9*n -7
c=10**(n-1)
b=10**(m-1)
p=int((2+s-sl)*c -1)
return p+b
s,m=map(int, input().split())
print(bla(m,s))
Add Comment
Please,
Sign In
to add comment
Public Pastes
[db error] mainwindow.cpp
C++ | 14 min ago | 0.57 KB
[db error] mainwindow.h
C | 16 min ago | 0.46 KB
[db error] CMakeLists.txt
CMake | 19 min ago | 0.70 KB
T123456
SQL | 19 min ago | 0.44 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 22 min ago | 0.39 KB
C++ Multithreading code on Sort array CHATGPT
C++ | 24 min ago | 0.97 KB
C++ Multithreading Calculate Fibonacci CHATGP...
C++ | 30 min ago | 0.60 KB
Untitled
JavaScript | 41 min ago | 2.58 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!