第一个任务

//a+b就不打了 新手试水题233

 

P1421 小玉买文具

简单模拟问题 把a元b角全部转化为角后就可以容易地解决了

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    int a,b,n;
    cin>>a>>b;
    n=10*a+b;
    cout<<n/19;
    return 0; 
}
View Code

相关文章:

  • 2021-12-31
  • 2021-12-13
  • 2021-07-17
  • 2021-09-18
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
猜你喜欢
  • 2021-08-09
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2021-09-11
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案