1065. A+B and C (64bit) (20)
来源:互联网 发布:c语言 algin 编辑:程序博客网 时间:2024/06/08 02:04
题目:1065. A+B and C (64bit) (20)
#include<stdio.h>int main(){ long long a,b,c; int n,i,tag=0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%lld %lld %lld",&a,&b,&c); long long ans=a+b; if(a>0&&b>0&&ans<=0)tag=1; else if(a<0&&b<0&&ans>=0)tag=0; else tag=(ans>c); if(tag)printf("Case #%d: true\n",i+1); else printf("Case #%d: false\n",i+1); }}
0 0
- PAT A 1065. A+B and C (64bit) (20)
- PAT-A 1065. A+B and C (64bit) (20)
- PAT-A-1065. A+B and C (64bit) (20)
- 1065. A+B and C (64bit)
- 1065. A+B and C (64bit)
- 1065. A+B and C (64bit)
- 1065.A+B and C (64bit)
- 1065. A+B and C (64bit)
- 1065. A+B and C (64bit)
- 1065. A+B and C (64bit)
- 1065. A+B and C (64bit)
- 1065. A+B and C (64bit)
- 1065. A+B and C (64bit)
- A+B and C (64bit) (20)
- 1065. A+B and C (64bit) (20)
- 【PAT】1065. A+B and C (64bit) (20)
- 1065. A+B and C (64bit) (20)
- 1065. A+B and C (64bit) (20)
- 黑色幽默
- 快速幂算法基础
- 371. Sum of Two Integers
- 第四周项目3-随机函数应用于游戏(2)小学生算数能力测试系统
- 在硬件设备上运行应用
- 1065. A+B and C (64bit) (20)
- SCU2016-02 T题 (LIS)
- 第一行代码酷欧天气开发(二)
- BFS(广度优先搜索)基本介绍
- HDU:Find a way
- 盘点国内十大人工智能网站
- 一.Python之环境安装及基础
- 玩转 AngularJS 的 Promise
- JDK中设计模式