CF616A.Comparing Two Long Integers
入门
通过率:0%
时间限制:2.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
You are given two very long integers a, b (leading zeroes are allowed). You should check what number a or b is greater or determine that they are equal.
The input size is very large so don't use the reading of symbols one by one. Instead of that use the reading of a whole line or token.
As input/output can reach huge size it is recommended to use fast input/output methods: for example, prefer to use scanf/printf instead of cin/cout in C++, prefer to use BufferedReader/PrintWriter instead of Scanner/System.out in Java. Don't use the function input() in Python2 instead of it use the function raw_input().
给你两个非常大的整数 a 和 b(允许前导零)。你需要判断 a 和 b 中哪个更大,或者确定它们相等。
由于输入规模非常大,请勿逐个字符读入。应改为整行读入或按 token 读入。
由于输入/输出规模可能极大,建议使用快速输入/输出方法:例如,在 C++ 中优先使用 scanf/printf 而非 cin/cout;在 Java 中优先使用 BufferedReader/PrintWriter 而非 Scanner/System.out;在 Python2 中不要使用 input() 函数,而应使用 raw_input() 函数。
输入格式
The first line contains a non-negative integer a.
The second line contains a non-negative integer b.
The numbers a, b may contain leading zeroes. Each of them contains no more than 106 digits.
第一行包含一个非负整数 a。
第二行包含一个非负整数 b。
数字 a 和 b 可能包含前导零。每个数字最多包含 106 位数字。
输出格式
Print the symbol "<" if a < b and the symbol ">" if a > b. If the numbers are equal print the symbol "=".
如果 a<b,输出符号“<”;如果 a>b,输出符号“>”。如果两数相等,则输出符号“=”。
输入输出样例
输入#1
9 10
输出#1
<
输入#2
11 10
输出#2
>
输入#3
00012345 12345
输出#3
=
输入#4
0123 9
输出#4
>
输入#5
0123 111
输出#5
>
输入解题思路,AI测评打分。不知道怎么写?