(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #431373

#TimeUsernameProblemLanguageResultExecution timeMemory
431373SAADMemory (IOI10_memory)C++17
100 / 100
4 ms384 KiB
#define F first #define S second #define rep(i,a,b) for(int i=a;!(a==b&&i!=b)&&((i<=b&&b>=a)||(i>=b&&a>=b));i+=(a<=b?1:-1)) #define pb push_back #define Fbitl __builtin_ffs #define bit1 __builtin_popcount //#include <bits/stdc++.h> #include <iostream> #include <math.h> #include <algorithm> #include <string.h> #include <vector> #include <queue> #include <map> #include <unordered_map> #include "grader.h" #include "memory.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<string, string> pss; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<pii> vii; typedef vector<ll> vl; typedef vector<vl> vvl; vi x[2000]; void play() { for ( int i=1;i<=50;i++) x[faceup(i)].pb(i); for ( int i = 'A' ; i < 'Z' ; i++ ) { for ( auto j : x[i] ) faceup(j); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:31:14: warning: array subscript has type 'char' [-Wchar-subscripts]
   31 |      x[faceup(i)].pb(i);
      |        ~~~~~~^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...