2020.8.7 B - MaratonIME challenges USPGameDev

Year after year, MaratonIME (group that authored this contest) and USPGameDev (game developing group at USP) fight epic clashes that last for centuries over which group will get each freshman to join them. This year, Russo (from MaratonIME) challenged Wil (from USPGameDev) to a dangerous match of darts.

Each one of them has already thrown their darts at the bullseye, but they can’t decide which one of them got closest to hitting the center of it. Each one of them claims to have won the match. You, as a fair freshman, decided to judge the clash yourself.

Two points on the 2d plane are given, r, the point where Russo’s dart hit, and w, the point where Wil’s dart hit. If r is closest to the origin (0, 0) than w, Russo won and you should print out “Russo” (no quotes) and join MaratonIME. If w and r are equally close to the origin, there’s a draw, you should print “Empate” (no quotes), which stands for “Draw” in portuguese, and join MaratonIME, because that was the agreed draw outcome. If w is closest to the origin than r, you should print “Wil” (no quotes) and join MaratonIME anyway, because it is the coolest group.

Input
加粗样式On the first line of the input, a pair of integers x r and y r is given, the coordinates hit by Russo. On the second line another pair of integers x w and y w is given, the coordinates hit by Wil. Every coordinate is guaranteed not to exceed 10000 on absolute value, formally,  - 10000 ≤ x r, y r, x w, y w ≤ 10000.

Output
A single line containing “Russo”, “Wil” or “Empate”, acording to statement’s instructions.

Examples
Input

2 1
3 0

Output
Russo

Input
10000 0
10000 1

Output
Russo

题目大意:
给你两个点的坐标,比较与远点的距离。

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int x1,y1,x2,y2,s1,s2;
    scanf("%d %d %d %d",&x1,&y1,&x2,&y2);
    if(x1<0)
        x1=-x1;
    if(x2<0)
        x2=-x2;
    if(y1<0)
        y1=-y1;
    if(y2<0)
        y2=-y2;
    s1=x1*x1+y1*y1;
    s2=x2*x2+y2*y2;
    if(s1>s2)
        printf("Wil\n");
    if(s1==s2)
        printf("Empate\n");
    if(s1<s2)
        printf("Russo\n");
    return 0;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
for Policy and Practice, 2018, 17(2): 179-195. In this article, Victor Wang Chen Neo examines the implementation of school-based curriculum development (SBCD) in Singapore. SBCD is a process where schools are given greater autonomy to develop and implement their own curriculum, rather than following a standardized national curriculum. The author begins by providing an overview of the history of curriculum development in Singapore, and how the shift towards SBCD came about. He then presents the findings of a study that he conducted, which involved interviews with school leaders who had implemented SBCD in their schools. The author identifies several factors that influenced the successful implementation of SBCD in these schools. These include strong leadership, a clear vision and direction for the school, and a focus on student learning and development. The author also highlights the importance of teacher training and support, as well as collaboration and communication among all stakeholders involved in the curriculum development process. However, the author also notes some challenges that schools face when implementing SBCD. These include a lack of resources, such as time and funding, as well as the need to balance autonomy with accountability to ensure that the curriculum developed meets national standards. Overall, the author suggests that SBCD has the potential to improve the quality of education in Singapore by allowing schools to tailor their curriculum to the needs and interests of their students. However, he also calls for continued support and guidance from the government to ensure that schools are able to implement SBCD effectively.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值