QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#664760#7157. Bikes vs CarsWarinchai_s#0 1ms4332kbC++14687b2024-10-21 22:11:582024-10-21 22:11:58

Judging History

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

  • [2024-10-21 22:11:58]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:4332kb
  • [2024-10-21 22:11:58]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int c[505][505];
int b[505][505];
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int n,w;cin>>n>>w;
    for(int i=0;i<n;i++){
        for(int j=0;j<i;j++){
            cin>>c[j][i];
        }
    }
    for(int i=0;i<n;i++){
        for(int j=0;j<i;j++){
            cin>>b[j][i];
        }
    }
    int rc=c[0][1];
    int rb=b[0][1];
    if(rc+rb<w){
        cout<<"NO\n";
        return 0;
    }
    cout<<(n-1)*2<<"\n";
    for(int i=0;i<n-1;i++){
        cerr<<i<<" "<<i+1<<" "<<rb<<"\n";
        cerr<<i<<" "<<i+1<<" "<<w-rc<<"\n";
    }
}
/*
4 5
1
1 1
1 1 1
4
4 4
4 4 4

*/

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3644kb

input:

14 1000000
494185
494185 494185
494185 494185 494185
494185 494185 494185 494185
494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 49...

output:

26

result:

wrong output format Unexpected end of file - int32 expected

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Wrong Answer

Test #16:

score: 0
Wrong Answer
time: 1ms
memory: 3748kb

input:

14 1000000
494185
494185 494185
494185 494185 494185
494185 494185 494185 494185
494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 494185 494185 494185
494185 494185 494185 494185 494185 49...

output:

26

result:

wrong output format Unexpected end of file - int32 expected

Subtask #4:

score: 0
Wrong Answer

Test #39:

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

input:

163 1
0
0 0
0 1 0
1 0 0 0
0 0 0 0 0
1 0 0 0 1 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 1
0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 1 0 0 0 0 0 1
0 1 0 1 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 1 1 0 0 0
0 0 0 0 0 1 0 0 0 0 0 1 1 0 0
0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 1 1 0 0 ...

output:

NO

result:

wrong answer Contestant said no, judge found solution

Subtask #5:

score: 0
Skipped

Dependency #2:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

0%