# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
37239 | chonka | Hard route (IZhO17_road) | C++98 | 1463 ms | 58352 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<iostream>
#include<stdio.h>
#include<vector>
using namespace std ;
#define MAXN 500007
int n ;
vector < int > v[ MAXN ] ;
struct tuhla {
int val ;
int tm ;
tuhla ( ) { val = tm = 0 ; }
tuhla ( int _val , int _tm ) {
val = _val ;
tm = _tm ;
}
};
tuhla dp[ MAXN ] ;
tuhla up[ MAXN ] ;
long long ans ;
long long tot ;
vector < int > pos ;
tuhla update ( tuhla cur , int x , int y ) {
if ( cur.val < x ) { cur.val = x ; cur.tm = 0 ; }
if ( cur.val == x ) { cur.tm += y ; }
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |