12 条题解
-
1
import java.util.Scanner;
public class Main2 { public static void main(String[] args) { //定义收到的钱 Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = a * 10 + b;
//定义得到的个数 int count = 0; while (sum >= 19) { sum -= 19; count++; } System.out.println(count); }}
-
0
水题,用10*a+b算出角数在除以19即可 代码如下:
#include<bits/stdc++.h> using namespace std; #define int long long #define ios ios::sync_with_stdio(false); #define tie cin.tie(0); cout.tie(0); #define ull unsigned long long #define ui unsigned int #define fop(x) freopen(x".in","r",stdin); freopen(x".out","w",stdout); int a,b; signed main(){ ios tie // fop("") cin>>a>>b; int money=a*10+b; cout<<money/19<<endl; return 0; }完结撒花
- 1
信息
- ID
- 5479
- 时间
- 1000ms
- 内存
- 125MiB
- 难度
- 1
- 标签
- 递交数
- 1552
- 已通过
- 1004
- 上传者