QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#699236#6773. True Storyjkliao#Compile Error//Python3606b2024-11-02 07:27:392024-11-02 07:27:39

Judging History

你现在查看的是最新测评结果

  • [2024-11-02 07:27:39]
  • 评测
  • [2024-11-02 07:27:39]
  • 提交

answer

#include <algorithm>
#include <iostream>
#include <vector>

using ld = long double;
using namespace std;

int main() {
  int n, k;
  ld x;
  vector<ld> p(k + 1);
  vector<ld> t(k + 1);
  cin >> n >> k >> x;
  cin >> p[0];
  vector<ld> s(n);
  for (int i = 0; i < n; i++)
    cin >> s[i];
  for (int i = 1; i <= k; i++)
    cin >> t[i];
  for (int i = 1; i <= k; i++)
    cin >> p[i];
  int ans = 0;
  sort(s.begin(), s.end());
  int pt = n - 1;
  for (int i = 0; i <= k; i++) {
    while (s[pt] * (p[i] - t[i]) >= x) {
      pt--;
    }
  }
  cout << n - (pt + 1) << endl;
}

详细

  File "answer.code", line 5
    using ld = long double;
          ^^
SyntaxError: invalid syntax