結果
| 問題 |
No.410 出会い
|
| ユーザー |
|
| 提出日時 | 2017-03-08 14:17:59 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 195 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 21,504 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 11:21:12 |
| 合計ジャッジ時間 | 875 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d %d %d %d",&px,&py,&qx,&qy);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
#include <stdlib.h>
int main(void){
int px,py,qx,qy;
double total;
scanf("%d %d %d %d",&px,&py,&qx,&qy);
printf("%.1f\n",(abs(px-qx)+abs(py-qy))/2.0);
return 0;
}