結果
| 問題 | No.514 宝探し3 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-05 22:53:35 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 466 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-16 13:03:49 |
| 合計ジャッジ時間 | 1,717 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%lld",&a);
| ^~~~~~~~~~~~~~~~
main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%lld",&b);
| ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(int argc, char const *argv[]){
long long x,y,a,b;
printf("0 0\n");
fflush(stdout);
scanf("%lld",&a);
printf("1000000000 0\n");
fflush(stdout);
scanf("%lld",&b);
x=(a-b+1000000000)/2;
y=a-x;
printf("%lld %lld\n",x,y);
fflush(stdout);
return 0;
}