Submission #127947

# Submission time Handle Problem Language Result Execution time Memory
127947 2019-07-10T08:58:08 Z 이온조(#3109) Long Distance Coach (JOI17_coach) C++14
0 / 100
2 ms 376 KB
#include <bits/stdc++.h>
using namespace std;

int S[200009], D[200009], C[200009];

int main() {
	int X, N, M, W, T; scanf("%d%d%d%d%d",&X,&N,&M,&W,&T);
	for(int i=1; i<=N; i++) scanf("%d",&S[i]);
	for(int i=1; i<=M; i++) scanf("%d%d",&D[i],&C[i]);
	puts("103");
	return 0;
}

Compilation message

coach.cpp: In function 'int main()':
coach.cpp:7:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  int X, N, M, W, T; scanf("%d%d%d%d%d",&X,&N,&M,&W,&T);
                     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
coach.cpp:8:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1; i<=N; i++) scanf("%d",&S[i]);
                          ~~~~~^~~~~~~~~~~~
coach.cpp:9:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1; i<=M; i++) scanf("%d%d",&D[i],&C[i]);
                          ~~~~~^~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Halted 0 ms 0 KB -