結果
問題 | No.514 宝探し3 |
ユーザー |
![]() |
提出日時 | 2017-08-12 19:53:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 341 bytes |
コンパイル時間 | 1,518 ms |
コンパイル使用メモリ | 165,804 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2024-07-16 14:00:37 |
合計ジャッジ時間 | 2,684 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 6 | main(){ | ^~~~
ソースコード
#include<bits/stdc++.h> typedef long long ll; using namespace std; int INF = 1e9; int MOD = 1e9+7; main(){ ll d1,d2; cout << 0 << " " << 0 << endl; fflush(0); cin >> d1; cout << 1000000000 << " " << 0 << endl; fflush(0); cin >> d2; d2 -= 1000000000; cout << (d1-d2)/2 << " " << (d1+d2)/2; fflush(0); }