結果
| 問題 |
No.514 宝探し3
|
| コンテスト | |
| ユーザー |
RIGIH
|
| 提出日時 | 2017-06-26 22:49:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 466 bytes |
| コンパイル時間 | 665 ms |
| コンパイル使用メモリ | 59,180 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-16 13:54:02 |
| 合計ジャッジ時間 | 2,061 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include<stdio.h>
#include <iostream>
#include <cstring>
#include <math.h>
using namespace std;
int main(){
/*int i;
for(i=0;i<100;i++){
cout << 0 << " " << i << endl;
int d;
cin>>d;
if(d==0)return 0;
}*/
cout<<0<<" "<<0<<endl;
int d;
cin>>d;
cout<<0<<" "<<d<<endl;
int e;
cin>>e;
if(e%2==0){
cout<<e/2<<" "<<d-e/2<<endl;
return 0;
}
else{
cout<<(e+1)/2<<" "<<d-(e-1)/2<<endl;
return 0;
}
return 0;
}
RIGIH