# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1041857 | 2024-08-02T08:46:42 Z | 김기범(#11055) | Bring Down the Grading Server (CEOI23_gradingserver) | C++17 | 79 ms | 5540 KB |
#include <bits/stdc++.h> using namespace std; typedef long long ll; bool fuck(ll x, ll y, ll z, ll w){ // 9 9 0 10 ll t = max({x, y, z, w}) * 10; w += t-x; x = t; // 10 9 0 11 y += t-z; z = t; if (t <= y && y >= w) return true; else if (t <= y) return false; else if (t <= w) return false; else if ((long double)(t-y) / (t-w) <= (sqrtl(5)+1)/2) return true; return false; } int main(){ int s, q; scanf("%d %d", &s, &q); // freopen("out2.txt", "w", stdout); // int LIM = 10; // for (int i=1;i<=LIM;i++) for (int j=0;j<=LIM;j++){ // for (int k=1;k<=LIM;k++) for (int l=0;l<=LIM;l++){ // if (fuck(i, j, k, l)) printf("#"); // else printf("."); // } // printf("\n"); // } // return 0; while(q--){ ll x, y, z, w; scanf("%lld %lld %lld %lld", &x, &y, &z, &w); if (fuck(x, y, z, w)) printf("YES\n"); else printf("NO\n"); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 79 ms | 5540 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |