Submission #851855

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
8518552023-09-20 17:18:47themaver1cksCommuter Pass (JOI18_commuter_pass)C++14
0 / 100
563 ms262144 KiB
/**
。∠(*ω・) ~ (( ,,з,, ))
_Π_____
/______/~
**/
#include <bits/stdc++.h>
using namespace std;
#define fori(i, l, r) for(int (i) = (l); i < (r); ++i)
#define forie(i, l, r) for (int (i) = (l); i <= (r); ++i)
#define ford(i, l, r) for (int (i) = (l); i > (r); --i)
#define forde(i, l, r) for (int (i) = (l); i >= (r); --i)
//#define int long long
//#define i_inf INT_MAX
#define inf LLONG_MAX
#define ii pair<int,int>
#define fi first
#define se second
#define gcd __gcd
#define lcm(x,y) x * y/ gcd(x,y)
#define pb push_back
#define sz size
#define all(x) begin(x), end(x)
#define fastio ios_base::sync_with_stdio(0); cin.tie(nullptr);
#define el "\n"
#define sp " "
//
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

commuter_pass.cpp: In function 'void solve()':
commuter_pass.cpp:13:33: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   13 | #define forie(i, l, r) for (int (i) = (l); i <= (r); ++i)
      |                                 ^
commuter_pass.cpp:87:2: note: in expansion of macro 'forie'
   87 |  forie(i, 1, m)
      |  ^~~~~
commuter_pass.cpp:12:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   12 | #define fori(i, l, r) for(int (i) = (l); i < (r); ++i)
      |                               ^
commuter_pass.cpp:106:9: note: in expansion of macro 'fori'
  106 |         fori(i, 1, a.sz())
      |         ^~~~
commuter_pass.cpp:12:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 | #define fori(i, l, r) for(int (i) = (l); i < (r); ++i)
      |                                            ^
commuter_pass.cpp:106:9: note: in expansion of macro 'fori'
  106 |         fori(i, 1, a.sz())
      |         ^~~~
commuter_pass.cpp:12:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
   12 | #define fori(i, l, r) for(int (i) = (l); i < (r); ++i)
      |                               ^
commuter_pass.cpp:133:9: note: in expansion of macro 'fori'
  133 |         fori(i, 1, a.sz())
      |         ^~~~
commuter_pass.cpp:12:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 | #define fori(i, l, r) for(int (i) = (l); i < (r); ++i)
      |                                            ^
commuter_pass.cpp:133:9: note: in expansion of macro 'fori'
  133 |         fori(i, 1, a.sz())
      |         ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...