洛谷题解 P1421 【小玉买文具】
简洁,高效
#include<iostream>
using namespace std;
int main()
{
int a,b=19,c,zo=0,ans=0;
cin>>a>>c;
zo=a*10+c;
ans=zo/b;
cout<<ans<<endl;
}
题目详见:https://www.luogu.org/problem/show?pid=1421
简洁,高效
#include<iostream>
using namespace std;
int main()
{
int a,b=19,c,zo=0,ans=0;
cin>>a>>c;
zo=a*10+c;
ans=zo/b;
cout<<ans<<endl;
}
题目详见:https://www.luogu.org/problem/show?pid=1421