| ||||||||||
| 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 | |||||||||
Re:165BIn Reply To:100b不到的代码怎么写的,180极限了 Posted by:kyogre at 2017-09-17 00:10:43 #include<iostream>
const double u = 1.6180339887;
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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator