Submission #15504899
Source Code Expand
#include <bits/stdc++.h>
#define INF 1e9
using namespace std;
#define REPR(i,n) for(int i=(n); i >= 0; --i)
#define FOR(i, m, n) for(int i = (m); i < (n); ++i)
#define REP(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define ALL(a) (a).begin(),(a).end()
#define endl "\n"
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return true; } return false; }
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return true; } return false; }
typedef long long ll;
void solve() {
ll S;
cin >> S;
if(S == ll(1e18)) {
cout << "0 0 0 1000000000 1000000000 0" << endl;
return;
}
ll p = S/(ll)INF;
ll q = S%(ll)INF;
cout << 0 << " " << 0 << " " << ll(INF);
cout << " " << ll(INF-q) << " " << 1 << " " << ll(p+1) << endl;
}
int main() {
solve();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Triangle |
| User | reud |
| Language | C++ (GCC 9.2.1) |
| Score | 400 |
| Code Size | 864 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 3624 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 400 / 400 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, sample-01.txt, sample-02.txt, sample-03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 6 ms | 3548 KiB |
| 01-02.txt | AC | 2 ms | 3544 KiB |
| 01-03.txt | AC | 2 ms | 3516 KiB |
| 01-04.txt | AC | 2 ms | 3544 KiB |
| 01-05.txt | AC | 2 ms | 3516 KiB |
| 01-06.txt | AC | 2 ms | 3540 KiB |
| 01-07.txt | AC | 3 ms | 3408 KiB |
| 01-08.txt | AC | 2 ms | 3516 KiB |
| 01-09.txt | AC | 2 ms | 3404 KiB |
| 01-10.txt | AC | 2 ms | 3404 KiB |
| 01-11.txt | AC | 2 ms | 3388 KiB |
| 01-12.txt | AC | 2 ms | 3592 KiB |
| 01-13.txt | AC | 2 ms | 3352 KiB |
| sample-01.txt | AC | 3 ms | 3624 KiB |
| sample-02.txt | AC | 2 ms | 3588 KiB |
| sample-03.txt | AC | 2 ms | 3588 KiB |