/ 科创班 /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:5:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  int a,b;scanf("%d%d",&a,&b);
          ~~~~~^~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 15, expect -3. 1ms 384.0 KiB
#2 Wrong Answer Read 9, expect 7. 2ms 384.0 KiB
#3 Wrong Answer Read 2, expect -18. 2ms 384.0 KiB
#4 Wrong Answer Read 35, expect 17. 2ms 384.0 KiB
#5 Wrong Answer Read 19, expect 6. 2ms 384.0 KiB
#6 Wrong Answer Read 15, expect -7. 1ms 384.0 KiB
#7 Wrong Answer Read 18, expect 9. 2ms 384.0 KiB
#8 Wrong Answer Read 23, expect 16. 2ms 384.0 KiB
#9 Wrong Answer Read 3, expect -5. 2ms 384.0 KiB
#10 Wrong Answer Read 9, expect 7. 1ms 384.0 KiB

代码

#include<iostream>
using namespace std;
int main()
{
	int a,b;scanf("%d%d",&a,&b);
	if(a>b){cout<<a<<" "<<b;return 0;}
	else{cout<<b<<" "<<a;return 0;}
}

信息

递交者
类型
递交
题目
用if语句实现选择结构
题目数据
下载
语言
C++
递交时间
2021-03-04 18:47:17
评测时间
2021-03-04 18:47:17
评测机
分数
0
总耗时
20ms
峰值内存
384.0 KiB