Submission #711084

# Submission time Handle Problem Language Result Execution time Memory
711084 2023-03-16T08:27:40 Z Tyx2019 Rainy Markets (CCO22_day1problem2) C++17
0 / 25
998 ms 39872 KB
// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.
// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.// The term 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' is not recognized as the name of 
// a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
// included, verify that the path is correct and try again.
#include <bits/stdc++.h>
using namespace std;
#define int long long
main(){
    int N;
    cin >> N;
    int B[N],U[N-1],P[N-1];
    for(int i=0;i<N;i++) cin >> B[i];
    for(int i=0;i<N-1;i++) cin >> P[i];
  for(int i=0;i<N-1;i++) cin >> U[i];
    int L[N-1], R[N-1];
    int prevr=0;
    for(int i=0;i<N-1;i++){
        L[i]=B[i]-prevr;
        R[i]=P[i]-L[i];
        if(R[i]>B[i+1]){
            cout << "NO";
            return 0;
        }
        prevr=R[i];
    }
    cout << "YES\n0\n";
    for(int i=0;i<N-1;i++){
        cout << L[i] << " 0 " << R[i] << "\n";
    }
}

Compilation message

Main.cpp:150:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
  150 | main(){
      | ^~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 741 ms 39636 KB Output is correct
5 Correct 998 ms 39740 KB Output is correct
6 Correct 730 ms 39624 KB Output is correct
7 Correct 854 ms 39872 KB Output is correct
8 Correct 5 ms 596 KB Output is correct
9 Incorrect 6 ms 596 KB Integer 243604620 violates the range [0, 223159716]
10 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 741 ms 39636 KB Output is correct
5 Correct 998 ms 39740 KB Output is correct
6 Correct 730 ms 39624 KB Output is correct
7 Correct 854 ms 39872 KB Output is correct
8 Correct 5 ms 596 KB Output is correct
9 Incorrect 6 ms 596 KB Integer 243604620 violates the range [0, 223159716]
10 Halted 0 ms 0 KB -