結果
問題 | No.306 さいたま2008 |
ユーザー |
|
提出日時 | 2020-04-27 18:00:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 1,770 ms |
コンパイル使用メモリ | 191,140 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-14 12:16:26 |
合計ジャッジ時間 | 2,750 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:31: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | int xa,ya,xb,yb; scanf("%d%d%d%d",&xa,&ya,&xb,&yb); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ int xa,ya,xb,yb; scanf("%d%d%d%d",&xa,&ya,&xb,&yb); printf("%.9f\n",ya+1.0*xa/(xa+xb)*(yb-ya)); return 0; }