/ 科创班 /

记录详情

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 Standard answer longer than user output. 1ms 384.0 KiB
#2 Wrong Answer Standard answer longer than user output. 1ms 348.0 KiB
#3 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#4 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#5 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#6 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#7 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#8 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#9 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB
#10 Wrong Answer Standard answer longer than user output. 1ms 384.0 KiB

代码

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

信息

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