Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

新手参考,大神勿进

Posted by 2004140022 at 2015-12-25 17:27:35 on Problem 3386
题意:从一个大圆里面切2个圆环:方式有2种,一种为圆环a和圆环b套在一起,正如示例图中所示,
另一种a和b不叠加,并列。(参考各位前辈的留言)
#include<stdio.h>
int main()
{
    int ra,a,rb,b,p;
    scanf("%d%d%d%d%d",&ra,&a,&rb,&b,&p);
    if(p>=ra&&a>=rb||p>=rb&&b>=ra||p>=ra+rb)
        puts("Yes");
    else
        puts("No");

return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator