标签:math cep 情况 map panel limit class memory scan
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 9725 Accepted Submission(s): 5605
C/C++:
1 #include <map> 2 #include <queue> 3 #include <cmath> 4 #include <vector> 5 #include <string> 6 #include <cstdio> 7 #include <cstring> 8 #include <climits> 9 #include <iostream> 10 #include <algorithm> 11 #define INF 0x3f3f3f3f 12 #define LL long long 13 #define wzf ((1 + sqrt(5.0)) / 2.0) 14 using namespace std; 15 16 int n, m; 17 18 int main() 19 { 20 while (~scanf("%d%d", &n, &m)) 21 { 22 if (int(abs(n - m) * wzf) == min(n, m)) 23 printf("0\n"); 24 else 25 printf("1\n"); 26 } 27 return 0; 28 }
标签:math cep 情况 map panel limit class memory scan
原文地址:https://www.cnblogs.com/GetcharZp/p/9557780.html