Files
PAT/html/a1065.html
T

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 &gt; C.</p>
<p><b>
Input Specification:
</b></p>
<p>The first line of the input gives the positive number of test cases, T (&lt;=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&amp;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>