Submission #1018484

# Submission time Handle Problem Language Result Execution time Memory
1018484 2024-07-10T06:15:42 Z AliHasanli Roadside Advertisements (NOI17_roadsideadverts) C++17
7 / 100
44 ms 1304 KB
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,ans=0;
	cin>>n;
	for(int i=1;i<n;i++)
	{
	    int a,b,c;
	    cin>>a>>b>>c;ans+=c;
	}
	int q;
	cin>>q;
	for(int i=0;i<q;i++)
	{
	    int a,b,c,d,e;
	    cin>>a>>b>>c>>d>>e;
	    cout<<ans<<endl;
	}
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 1304 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 1148 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 44 ms 1304 KB Output isn't correct
3 Halted 0 ms 0 KB -