結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2018-09-13 23:39:42 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 169 bytes |
コンパイル時間 | 703 ms |
コンパイル使用メモリ | 24,704 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:14:53 |
合計ジャッジ時間 | 1,680 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%lf%lf%lf%lf",&xa,&ya,&xb,&yb); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(void){double xa,ya,xb,yb;scanf("%lf%lf%lf%lf",&xa,&ya,&xb,&yb);printf("%.7f",(xb*ya+xa*yb)/(xa+xb));return 0;}