# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
604783 | 1bin | Cubeword (CEOI19_cubeword) | C++14 | 428 ms | 50568 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
typedef long long ll;
const int NMAX = 1e5 + 5;
const ll mod = 998244353;
ll n, ans, t[11][64][64], cnt[64][64][64], a, b, m[64][64][64][64];
string s;
set<string> st;
int chg(char c){
if(c >= '0' && c <= '9') return c - '0';
else if(c >= 'a' && c <= 'z') return c - 'a' + 10;
else return c - 'A' + 36;
}
void solve(int l){
memset(cnt, 0, sizeof(cnt));
for(int i = 0; i < 64; i++)
for(int j = i; j < 64; j++)
for(int k = j; k < 64; k++)
for(int x = 0; x < 64; x++)
cnt[i][j][k] += t[l][i][x] * t[l][j][x] * t[l][k][x], cnt[i][j][k] %= mod;
for(int i = 0; i < 64; i++)
for(int j = i; j < 64; j++)
for(int k = j; k < 64; k++)
for(int l = k; l < 64; l++)
# | 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... |