QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#512039#9177. String and Nailsucup-team045#WA 0ms3544kbC++20622b2024-08-10 13:21:172024-08-10 13:21:20

Judging History

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

  • [2024-08-10 13:21:20]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3544kb
  • [2024-08-10 13:21:17]
  • 提交

answer

#include<iostream>
#include<cstring>
#include<vector>
#include<array>
#include<algorithm>
using namespace std;
using LL = long long;

int main(){

#ifdef LOCAL
    freopen("data.in", "r", stdin);
    freopen("data.out", "w", stdout);
#endif

    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(0);

    int n;
    cin >> n;
    vector<array<int, 2> > p(n);
    for(int i = 0; i < n; i++){
        int x, y;
        cin >> x >> y;
        p[i] = {x, y};
    }
    sort(p.begin(), p.end());
    for(int i = 0; i < n - 1; i++){
        cout << p[i][0] << ' ' << p[i][1] << '\n';
    }

}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3544kb

input:

3
1 1
2 4
3 1

output:

1 1
2 4

result:

wrong answer Token parameter [name=YES or NO] equals to "1", doesn't correspond to pattern "[A-Za-z]+"