Note the range of the data , Use long long That's it

#include<stdio.h>
int main(){
int N;scanf("%d",&N);
for(int i=1;i<=N;i++){
long long A,B,C;
scanf(" %ld%ld%ld",&A,&B,&C);
A+=B;
if(A>C)
printf("Case #%ld: true\n",i);
else
printf("Case #%ld: false\n",i);
}
return 0;
}

【PAT】B1011 A+B and C More articles about

  1. PAT B1011 A+B and C (15)

    AC Code #include <cstdio> int main() { int T, tcase = 1; scanf("%d", &T); for(int i ...

  2. PAT subject AC Summary ( To be completed )

    subject AC Summary Class A AC PAT A1001 A+B Format (20 branch ) PAT A1002 A+B for Polynomials(25) PAT A1005 Spell It Right ( ...

  3. PAT/ Simple simulation problem set ( One )

    B1001. It's not worth killing (3n+1) guess (15) Description: Karaz (Callatz) guess : For any natural number n, If it's even , Then cut it in half : If it's an odd number , Then put the (3n+1) Cut off ...

  4. PAT—— Class B 1001and1011

    Prepare for the exam at the beginning of next year PAT, Practice , For the first time LeetCode put down . I wrote it according to the algorithm notes . B1001 1001  It's not worth killing (3n+1) guess  (15 point(s)) Karaz (Callatz) ...

  5. 《 Reprint 》PAT exercises

    Blog source :http://blog.csdn.net/zhoufenqin/article/details/50497791 Source of topic :https://www.patest.cn/contests/pa ...

  6. PAT Judge

    Link to the original question :https://pta.patest.cn/pta/test/16/exam/4/question/677 The title is as follows : The ranklist of PAT is generated fr ...

  7. PAT/ String processing problem set ( Two )

    B1024. Scientific enumeration (20) Description: Scientific counting is a convenient way for scientists to express large or small numbers , It satisfies the regular expression [+-][1-9]"."[0-9]+E[+ ...

  8. PAT 1041. Test seat number (15)

    Every PAT Candidates are assigned two seat numbers when they take the exam , One is a test seat , One is the exam seat . Under normal circumstances , Candidates will get the seat number of the test machine before entering , After entering the test state , The system will display the test seat number of the candidate , The examinee needs to change to the examination seat during the examination ...

  9. PAT 1040. There are several PAT(25)

    character string APPAPT It contains two words "PAT", The first PAT It's No 2 position (P), The first 4 position (A), The first 6 position (T): the second PAT It's No 3 position (P), The first 4 position (A), The first 6 position (T). Now given the string , ask ...

Random recommendation

  1. Multiplication algorithm of suffix array (Prefix Doubling)

    Multiplication algorithm of suffix array (Prefix Doubling) Unless otherwise specified , All signed in knowledge sharing - Noncommercial use - Share in the same way 3.0 Provided under the agreement , Additional clauses may also apply . Recently in self-learning BWT Algorithm (Burrows ...

  2. MySQL Supported data types (1)( Integers , Smaller , position )

      Integer types byte minimum value Maximum tinyint 1 A signed -128 Unsigned 0 A signed 127 Unsigned 255 smallint 2 A signed -32768 Unsigned 0 A signed 32767 Unsigned 65535 m ...

  3. shiro Change the login user name

    ShiroUser user = (ShiroUser) SecurityUtils.getSubject().getPrincipal(); user.name = newName;

  4. 8.nodejs Authoritative guide --MongoDB

    1. MongoDB var mongo = require('mongodb'); var host = '127.0.0.1'; var port = mongo.Connecton.DEFAUL ...

  5. P2679 Substring

    http://www.luogu.org/problem/show?pid=2679 Title Description There are two strings that contain only lowercase English letters A and B. Now, from the string A Remove from k Two nonempty strings that don't overlap each other , then ...

  6. POJ 3259 Wormholes(SPFA)

    http://poj.org/problem?id=3259 The question : Farmer John found many wormholes on his farm , He's a super adventurer , Want to use wormholes to go back in time , See if you can see yourself before you leave when you come back , There are... On the farm N Block plot , ...

  7. Lab 9-3

    Analyze the malware found in the file Lab09-03.exe using OllyDbg and IDA Pro. This malware loads thr ...

  8. Image data enhancement (Data Augmentation in Computer Vision)

    1.1 brief introduction Deep neural networks generally need a lot of training data to get ideal results . In the case of limited data , It can be enhanced by data (Data Augmentation) To increase the diversity of training samples , Improve model robustness , Avoid over planning ...

  9. day7:set And depth copy

    1, Determine whether the string is a space isspace function s1 = ' ' s2 = ' ssss' print(s1.isspace()) print(s2.isspace()) Running results : True False ...

  10. node Read the file by line

    var readline = require('readline'); var fs = require('fs'); var os = require('os'); var fReadName =  ...