結果
| 問題 | No.513 宝探し2 |
| コンテスト | |
| ユーザー |
sugim48
|
| 提出日時 | 2017-05-05 22:24:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 308 ms / 2,000 ms |
| コード長 | 1,031 bytes |
| コンパイル時間 | 919 ms |
| コンパイル使用メモリ | 99,012 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 12502.92 |
| 最終ジャッジ日時 | 2024-07-17 00:56:06 |
| 合計ジャッジ時間 | 2,630 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
#include <random>
using namespace std;
#define rep(i, N) for (int i = 0; i < N; i++)
#define pb push_back
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; ll w; };
int const MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-12;
int INF = INT_MAX / 2;
int main() {
cout << 0 << ' ' << 0 << endl;
int d1; cin >> d1;
cout << 100000 << ' ' << 0 << endl;
int d2; cin >> d2;
for (int x = 0; x <= d1; x++) {
int y = d1 - x;
if (abs(x - 100000) + abs(y) == d2) {
cout << x << ' ' << y << endl;
}
}
}
sugim48