# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
211818 | spdskatr | Cubeword (CEOI19_cubeword) | C++14 | 443 ms | 23676 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <string>
#include <cstring>
#include <iostream>
#include <vector>
#include <set>
#define M 998244353
using namespace std;
typedef long long ll;
int N, gr[100005][10], npal[100005];
ll dp[64][64][64], tot[64][64][64], cnt[64][64], ans;
string s;
set<string> ss;
vector<int> tal[11];
int conv(char c) {
if ('a' <= c && c <= 'z') return c - 'a';
if ('A' <= c && c <= 'Z') return (c - 'A') + 26;
return (c - '0') + 52;
}
ll pm(ll x, ll y) {
return (x * y) % M;
}
int main() {
ios_base::sync_with_stdio(false);
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |