问题2440--Simple Arithmetic2440: Simple Arithmetic
时间限制: 3 Sec 内存限制: 128 MB
提交: 38 解决: 15
[提交] [状态] [讨论版] [命题人:]题目描述
Given a and b which both fit in 64-bit signed integers, find ⌊ a/b⌋ where ⌊x⌋ denotes the largest integer which
is not larger than x.
输入
The input contains zero or more test cases and is terminated by end-of-file.
Each test case contains two integers a, b.
• −263 ≤ a, b < 263
• b ≠ 0
• The number of tests cases does not exceed 104.
输出
For each case, output an integer which denotes the result.
样例输入
3 2
3 -2
-9223372036854775808 1
-9223372036854775808 -1
样例输出
1
-2
-9223372036854775808
9223372036854775808
来源/分类
[提交] [状态]