Submission #635655

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
6356552022-08-26 15:24:40BruteforcemanDreaming (IOI13_dreaming)C++11
18 / 100
41 ms13260 KiB
#include "dreaming.h"
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include <debug.h>
#include "grader.c"
#endif
#define st first
#define nd second
#define pb push_back
#define pf push_front
#define _pb pop_back
#define _pf pop_front
#define lb lower_bound
#define ub upper_bound
#define mtp make_tuple
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
typedef long long ll; typedef unsigned long long ull;
typedef double db; typedef long double ldb;
typedef pair<int, int> pi; typedef pair<ll, ll> pll;
typedef vector<int> vi; typedef vector<ll> vll; typedef vector<pi> vpi; typedef vector<pll> vpll;
typedef string str;
template<typename T> T gcd(T a, T b) { return (b == 0? a : gcd(b, a % b)); }
template<typename T> T lcm(T a, T b) { return a / gcd(a, b) * b; }
#define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
#define FOS(i, r, l) for (int (i) = (r); (i) >= (l); --(i))
#define EACH(i, x) for (auto &(i) : (x))
#define WHILE while
#define file "TEST"
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

dreaming.cpp: In function 'void dfs(int, int)':
dreaming.cpp:28:35: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
   28 |     #define EACH(i, x) for (auto &(i) : (x))
      |                                   ^
dreaming.cpp:43:9: note: in expansion of macro 'EACH'
   43 |         EACH(j, adj[u]) {
      |         ^~~~
dreaming.cpp: In function 'void dfs1(int, int, int, int&)':
dreaming.cpp:28:35: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
   28 |     #define EACH(i, x) for (auto &(i) : (x))
      |                                   ^
dreaming.cpp:54:9: note: in expansion of macro 'EACH'
   54 |         EACH(j, adj[u]) {
      |         ^~~~
dreaming.cpp:28:35: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
   28 |     #define EACH(i, x) for (auto &(i) : (x))
      |                                   ^
dreaming.cpp:63:9: note: in expansion of macro 'EACH'
   63 |         EACH(j, adj[u]) {
      |         ^~~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:26:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   26 |     #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
      |                                   ^
dreaming.cpp:74:9: note: in expansion of macro 'FOR'
   74 |         FOR(i, 0, m - 1) {
      |         ^~~
dreaming.cpp:26:35: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   26 |     #define FOR(i, l, r) for (int (i) = (l); (i) <= (r); ++(i))
      |                                   ^
dreaming.cpp:82:9: note: in expansion of macro 'FOR'
   82 |         FOR(i, 1, N) {
      |         ^~~
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...