結果
問題 | No.410 出会い |
ユーザー |
|
提出日時 | 2018-03-19 17:23:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 24,576 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 11:41:30 |
合計ジャッジ時間 | 991 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d %d",&Px,&Py); | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d %d",&Qx,&Qy); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <stdlib.h> int main(){ //input int Px,Py; int Qx,Qy; scanf("%d %d",&Px,&Py); scanf("%d %d",&Qx,&Qy); //length int l = abs(Px-Qx)+abs(Py-Qy); //min time double t = 0.5*l; //output printf("%f\n",t); return 0; }