이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <string>
#include <map>
#include <set>
#include <queue>
#include <cstring>
#include <sstream>
typedef long long ll;
#define LL_MAX 1000000000000000
#define LL_MIN -1000000000000000
#define int long long
#define double long double
#define MOD(a) ((a) % 1000000007 + 1000000007 ) % 1000000007
#define FI first
#define caseOut(t) cout << "Case " << t << ": ";
#define SE second
#define USACO_SETUP() ifstream cin("paint.in"); ofstream cout("paint.out");
#define SETUP() ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
signed main() {
SETUP();
int n;
cin >> n;
vector<pair<int,int>> start(n);
vector<pair<int, int>> end(n);
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
start[i] = { x,y };
cin >> x >> y;
end[i] = { x,y };
}
pair<int, int> f=end[0];
for (int i = 1; i < n; i++)
{
cout << f.FI << " " << f.SE << " " << start[i].FI << " " << start[i].SE << "\n";
f = end[i];
}
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |