tyvj q1002
描述 Description输入两个自然数,输出他们四则运算后的结果
输入格式 InputFormat输入两个自然数 a,b
输出格式 OutputFormat输出共四行,第一行输出a+b后的结果,第二行输出a-b后的结果,第三行输出a*b后的结果,第四行输出a/b(除)后的结果,舍小数保留到整数位
样例输入 SampleInput [复制数据]123 500样例输出 SampleOutput [复制数据]623-377615000数据范围和注释 Hint数据范围:
1<=a,b<=100000
我的程序
#include<stdio.h>
int main()
{
long long a,b;
scanf("%I64d%I64d",&a,&b);
printf("%I64d\n%I64d\n%I64d\n%d\n",a+b,a-b,a*b,a/b);
return 0;
}
测试结果
测试数据 #1: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #2: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #3: Output Limit Exceeded, time=0ms, mem=632KB, score=0
测试数据 #4: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #5: Output Limit Exceeded, time=0ms, mem=632KB, score=0
测试数据 #6: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #7: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #8: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #9: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #10: Output Limit Exceeded, time=0ms, mem=636KB, score=0
Time = 0ms Mem = 636KB Score= 0
这是为什么
描述 Description输入两个自然数,输出他们四则运算后的结果
输入格式 InputFormat输入两个自然数 a,b
输出格式 OutputFormat输出共四行,第一行输出a+b后的结果,第二行输出a-b后的结果,第三行输出a*b后的结果,第四行输出a/b(除)后的结果,舍小数保留到整数位
样例输入 SampleInput [复制数据]123 500样例输出 SampleOutput [复制数据]623-377615000数据范围和注释 Hint数据范围:
1<=a,b<=100000
我的程序
#include<stdio.h>
int main()
{
long long a,b;
scanf("%I64d%I64d",&a,&b);
printf("%I64d\n%I64d\n%I64d\n%d\n",a+b,a-b,a*b,a/b);
return 0;
}
测试结果
测试数据 #1: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #2: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #3: Output Limit Exceeded, time=0ms, mem=632KB, score=0
测试数据 #4: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #5: Output Limit Exceeded, time=0ms, mem=632KB, score=0
测试数据 #6: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #7: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #8: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #9: Output Limit Exceeded, time=0ms, mem=636KB, score=0
测试数据 #10: Output Limit Exceeded, time=0ms, mem=636KB, score=0
Time = 0ms Mem = 636KB Score= 0
这是为什么