Submission #371148
Source Code Expand
#include <bits/stdc++.h> using namespace std; double a, b; int MAIN() { cin >> a >> b; if(a == 0 && b == 0) { cout << "0 0 1 0" << endl; cout << "0 0 0 1" << endl; } else if(a != 0) { cout << "0 0 " << int(a*1000) << " " << int(b*1000) << endl; int dx = (-a) * 1000, dy = (1-b) * 1000; cout << "0 1 " << 0 + dx << " " << 1 + dy << endl; } else { cout << "0 0 " << a*1000 << " " << b*1000 << endl; int dx = (1-a) * 1000, dy = (-b) * 1000; cout << "1 0 " << 1 + dx << " " << 0 + dy << endl; } return 0; } int main() { int start = clock(); #ifdef LOCAL_TEST freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); #endif ios :: sync_with_stdio(false); cout << fixed << setprecision(16); int ret = MAIN(); #ifdef LOCAL_TEST cout << "[Finished in " << clock() - start << " ms]" << endl; #endif return ret; }
Submission Info
Submission Time | |
---|---|
Task | B - 交点 |
User | cgyrngmoon |
Language | C++ (GCC 4.9.2) |
Score | 0 |
Code Size | 902 Byte |
Status | WA |
Exec Time | 28 ms |
Memory | 928 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | scrambled_00.txt, scrambled_01.txt, scrambled_02.txt, scrambled_03.txt, scrambled_04.txt, scrambled_05.txt, scrambled_06.txt, scrambled_07.txt, scrambled_08.txt, scrambled_09.txt, scrambled_10.txt, scrambled_11.txt, scrambled_12.txt, scrambled_13.txt, scrambled_14.txt, scrambled_15.txt, scrambled_16.txt, scrambled_17.txt, scrambled_18.txt, scrambled_19.txt, scrambled_20.txt, scrambled_21.txt, scrambled_22.txt, scrambled_23.txt, scrambled_24.txt, scrambled_25.txt, scrambled_26.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
scrambled_00.txt | AC | 26 ms | 808 KB |
scrambled_01.txt | AC | 24 ms | 796 KB |
scrambled_02.txt | WA | 24 ms | 928 KB |
scrambled_03.txt | WA | 26 ms | 916 KB |
scrambled_04.txt | WA | 26 ms | 924 KB |
scrambled_05.txt | WA | 23 ms | 804 KB |
scrambled_06.txt | WA | 24 ms | 732 KB |
scrambled_07.txt | WA | 25 ms | 920 KB |
scrambled_08.txt | WA | 25 ms | 916 KB |
scrambled_09.txt | WA | 28 ms | 924 KB |
scrambled_10.txt | WA | 26 ms | 804 KB |
scrambled_11.txt | WA | 26 ms | 928 KB |
scrambled_12.txt | WA | 26 ms | 800 KB |
scrambled_13.txt | WA | 23 ms | 924 KB |
scrambled_14.txt | WA | 26 ms | 804 KB |
scrambled_15.txt | WA | 25 ms | 928 KB |
scrambled_16.txt | WA | 25 ms | 924 KB |
scrambled_17.txt | WA | 25 ms | 924 KB |
scrambled_18.txt | WA | 25 ms | 792 KB |
scrambled_19.txt | WA | 28 ms | 924 KB |
scrambled_20.txt | WA | 27 ms | 924 KB |
scrambled_21.txt | WA | 27 ms | 808 KB |
scrambled_22.txt | WA | 26 ms | 800 KB |
scrambled_23.txt | WA | 25 ms | 800 KB |
scrambled_24.txt | WA | 28 ms | 928 KB |
scrambled_25.txt | WA | 26 ms | 796 KB |
scrambled_26.txt | WA | 26 ms | 800 KB |