結果
問題 |
No.1280 Beyond C
|
ユーザー |
|
提出日時 | 2020-11-08 20:51:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 683 bytes |
コンパイル時間 | 873 ms |
コンパイル使用メモリ | 81,848 KB |
最終ジャッジ日時 | 2025-01-15 21:45:24 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 13 |
ソースコード
#include <iostream> #include <iomanip> #include <algorithm> #include <vector> using lint = long long; using ldouble = long double; void solve() { int n, m; lint c; std::cin >> n >> m >> c; std::vector<lint> xs(n), ys(m); for (auto& x : xs) std::cin >> x; for (auto& y : ys) std::cin >> y; lint ans = 0; for (auto x : xs) { lint l = c / x; ans += ys.end() - std::upper_bound(ys.begin(), ys.end(), l); } std::cout << ldouble(ans) / (ldouble(n) * m) << "\n"; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(10); solve(); return 0; }