Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
新手参考,大神勿进题意:从一个大圆里面切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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator