Skip to content
返回

0x0009 【深基1.习3】竞赛得分

编辑页面

题目描述

小A 和 UIM 程序设计竞赛中得分之和是 480480,UIM 的得分是小A 的 1.41.4 倍,请问他们分别得了多少分?

输入格式

不需要输入。

输出格式

请输出两个数字表示答案,均为整数,中间用空格隔开。

题目分析

目的:求出小A 和 UIM 的得分。

小A 的得分是 480÷2.4=200480 \div 2.4 = 200 分,UIM 的得分是 200×1.4=280200 \times 1.4 = 280 分。

代码实现

#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
const int N = 1e5 + 5;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cout << 200 << " " << 280;
  return 0;
}

编辑页面
分享这篇文章至:

上一篇
【CSP-J 2024】 扑克牌
下一篇
0x000a 【深基1.习4】简单的分苹果 3