mirror of
https://github.com/xlucn/PAT.git
synced 2026-10-31 06:37:38 +08:00
27 lines
908 B
HTML
27 lines
908 B
HTML
<!DOCTYPE html>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<h1>1065. A+B and C (64bit) (20)</h1>
|
|
<div id="problemContent">
|
|
<p>Given three integers A, B and C in [-2<sup>63</sup>, 2<sup>63</sup>], you are supposed to tell whether A+B > C.</p>
|
|
<p><b>
|
|
Input Specification:
|
|
</b></p>
|
|
<p>The first line of the input gives the positive number of test cases, T (<=10). Then T test cases follow, each consists of a single line containing three integers A, B and C, separated by single spaces.</p>
|
|
<p><b>
|
|
Output Specification:
|
|
</b></p>
|
|
<p>For each test case, output in one line "Case #X: true" if A+B&gtC;, or "Case #X: false" otherwise, where X is the case number (starting from 1).
|
|
|
|
</p>
|
|
<b>Sample Input:</b><pre>
|
|
3
|
|
1 2 3
|
|
2 3 4
|
|
9223372036854775807 -9223372036854775808 0
|
|
</pre>
|
|
<b>Sample Output:</b><pre>
|
|
Case #1: false
|
|
Case #2: true
|
|
Case #3: false
|
|
</pre>
|
|
</div> |