QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#528917#2. BoatTomi0 0ms3540kbC++14553b2024-08-24 02:54:552024-08-24 02:54:56

Judging History

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

  • [2024-08-24 02:54:56]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:3540kb
  • [2024-08-24 02:54:55]
  • 提交

answer

#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vector<long long>arra;
    vector<long long>sum;
    int n,x;

    cin>>n;
    for(int i=0; i<n; i++){
        cin>>x>>x;
        arra.push_back(x);
    }

    for(int i=0; i<n; i++){
        sum.push_back(1);
        for(int j=i; j>=0; j--){
            if(arra[i]>arra[j]){
                sum[i]=sum[i]+sum[j];
            }
        }
    }
    long long s=0;
   for(int i=0; i<n; i++){
    s=s+sum[i];
   }
   cout<<s<<endl;
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

500
308810287 308810287
53564892 53564892
316377768 316377768
420249597 420249597
731165653 731165653
319087025 319087025
153776963 153776963
425464316 425464316
651047701 651047701
142502072 142502072
31632388 31632388
572337890 572337890
400220429 400220429
414382974 414382974
279400752 279400752
...

output:

218563926083179835

result:

wrong answer 1st lines differ - expected: '553232367', found: '218563926083179835'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Wrong Answer

Test #41:

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

input:

100
191358459 947004691
342443850 366915813
22574423 36448174
228846908 747282766
190110113 253913299
93029730 879223713
290883541 747723417
162887369 973643964
586349400 863191444
242642824 878391136
18343882 502405347
18658435 174450786
308510413 787915209
79222154 665119810
422422946 793255277
53...

output:

25747321

result:

wrong answer 1st lines differ - expected: '167281196', found: '25747321'

Subtask #4:

score: 0
Skipped

Dependency #1:

0%