Submission #330324

#TimeUsernameProblemLanguageResultExecution timeMemory
330324marvenleeStations (IOI20_stations)C++14
0 / 100
923 ms880 KiB
#include "stations.h" #include <vector> std::vector<int> label(int n, int k, std::vector<int> u, std::vector<int> v) { std::vector<int> labels(n); for (int i = 0; i < n; i++) { labels[i] = i; } return labels; } int find_next_station(int s, int t, std::vector<int> c) { if(c[0]<c[1]){ int temp=c[0]; c[0]=c[1]; c[1]=c[0]; } return (s<t)?c[0]:c[1]; }

Compilation message (stderr)

stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:14:13: warning: unused variable 'temp' [-Wunused-variable]
   14 |         int temp=c[0];
      |             ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...