很麻烦,但A了

刘嘉柚  •  5个月前


#include <iostream>
using namespace std;
int main()
{
	int a,b,g;
	double s;
	cin>>a>>b;
	s=a+(double)b/10;
	g=s/2.1;
	cout<<g;
	return 0;	
}

评论:

这才精简

#include<cstdio>
int main(){
	int a,b;
	scanf("%d%d",&a,&b);
	printf("%d",(a*10+b)/21);
	return 0;
}

黄戈  •  5个月前

黄某写对了,这个的确更加精简


魈凯KBS  •  5个月前