Submission #1169272

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
11692722025-03-18 12:41:468pete8Cats or Dogs (JOI18_catdog)C++17
0 / 100
8 ms18240 KiB
#include "catdog.h"
#include <iostream>
#include <stack>
#include <map>
#include <vector>
#include <string>
#include <cassert>
#include <unordered_map>
#include <queue>
#include <cstdint>
#include <cstring>
#include <limits.h>
#include <cmath>
#include <set>
#include <algorithm>
#include <iomanip>
#include <numeric>
#include <bitset>
using namespace std;
#define ll long long
#define f first
#define s second
#define pii pair<int, int>
#define ppii pair<int, pii>
#define vi vector<int>
#define pb push_back
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define F(n) for (int i = 0; i < n; i++)
#define lb lower_bound
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

catdog.cpp:35:39: warning: bad option '-funroll-lopps' to pragma 'optimize' [-Wpragmas]
   35 | #pragma GCC optimize("03,unroll-lopps")
      |                                       ^
catdog.cpp:45:7: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   45 |   mat()
      |       ^
catdog.cpp:51:22: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   51 |   mat operator*(mat o)
      |                      ^
catdog.cpp:69:25: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   69 |   void operator+=(mat &o)
      |                         ^
catdog.cpp:75:25: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   75 |   void operator-=(mat &o)
      |                         ^
catdog.cpp:83:17: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   83 | void print(mat x)
      |                 ^
catdog.cpp:96:65: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
   96 |   void update(int qpos, mat x, int pos = 1, int l = 1, int r = n)
      |                                                                 ^
catdog.cpp:109:66: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  109 |   void updateA(int qpos, mat x, int pos = 1, int l = 1, int r = n)
      |                                                                  ^
catdog.cpp:120:60: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  120 |   mat qry(int ql, int qr, int pos = 1, int l = 1, int r = n)
      |                                                            ^
catdog.cpp:136:26: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  136 | void getsz(int cur, int p)
      |                          ^
catdog.cpp:143:32: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  143 | void hld(int cur, int p, int hp)
      |                                ^
catdog.cpp:159:19: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  159 | void calup(int cur)
      |                   ^
catdog.cpp:176:24: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  176 | void dfs(int cur, int p)
      |                        ^
catdog.cpp:195:74: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  195 | void initialize(int32_t N, std::vector<int32_t> A, std::vector<int32_t> B)
      |                                                                          ^
catdog.cpp:208:24: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  208 | int32_t cat(int32_t cur)
      |                        ^
catdog.cpp:225:24: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  225 | int32_t dog(int32_t cur)
      |                        ^
catdog.cpp:243:29: warning: bad option '-funroll-lopps' to attribute 'optimize' [-Wattributes]
  243 | int32_t neighbor(int32_t cur)
      |                             ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...