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

Re:149B

Posted by TonyGatsby at 2018-04-12 18:51:39 on Problem 1067
In Reply To:100b不到的代码怎么写的,180极限了 Posted by:kyogre at 2017-09-17 00:10:43
#include<iostream>
double u = 1.618033988;
int main(){int n,m;
	while (~scanf("%d%d",&n,&m))int(abs(m - n)*u) == (n>m?m:n) ? puts("0") : puts("1");
}

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