CF468C.Hack it!
省选/NOI-
通过率:0%
时间限制:1.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Little X has met the following problem recently.
Let's define f(x) as the sum of digits in decimal representation of number x (for example, f(1234) = 1 + 2 + 3 + 4). You are to calculate 
Of course Little X has solved this problem quickly, has locked it, and then has tried to hack others. He has seen the following C++ code:
ans = solve(l, r) % a;
if (ans <= 0)
ans += a;
This code will fail only on the test with
. You are given number a, help Little X to find a proper test for hack.
小 X 最近遇到了如下问题:
定义 $ f(x) $ 为十进制表示下数字 $ x $ 的各位数字之和(例如,$ f(1234) = 1 + 2 + 3 + 4 $)。你需要计算

当然,小 X 很快就解决了这个问题,锁定了题目,然后尝试去 hack 其他人的代码。他看到了如下 C++ 代码:
ans = solve(l, r) % a;
if (ans <= 0)
ans += a;
该代码仅在满足
的测试用例上失败。你将被给定一个数 $ a $,请帮助小 X 找到一个可用于 hack 的合法测试用例。
输入格式
The first line contains a single integer a (1 ≤ a ≤ 1018).
第一行包含一个整数 a(1 ≤ a ≤ 1018)。
输出格式
Print two integers: l, r (1 ≤ l ≤ r < 10200) — the required test data. Leading zeros aren't allowed. It's guaranteed that the solution exists.
输出两个整数:l、r(1≤l≤r<10200)—— 所需的测试数据。不允许前导零。保证解存在。
输入输出样例
输入#1
46
输出#1
1 10
输入#2
126444381000032
输出#2
2333333 2333333333333
输入解题思路,AI测评打分。不知道怎么写?