# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
321314 | 2020-11-12T05:11:22 Z | seedkin | Get Hundred Points! (FXCUP4_hundred) | C++17 | 1 ms | 640 KB |
#include "hundred.h" #include <stdio.h> #define aBit 1 #define bBit 2 #define cBit 4 #define aIdx 0 #define bIdx 1 #define cIdx 2 int dir[100][8][100]; // dir[idx][char bit][target idx] = char bit std::string GetHundredPoints(int A, int B, int C) { // int a, b, c; // a = b = c = 0; int isCorret[100]; int candi[100]; // char ans[100]; int bit[500]; bit['A'] = aBit; bit['B'] = bBit; bit['C'] = cBit; // char c[5]; // c[aBit] = 'A'; // c[bBit] = 'B'; // c[cBit] = 'C'; std::string str = std::string(A, 'A') + std::string(B, 'B') + std::string(C, 'C'); for(int i =0; i < 100 ; i++) { isCorret[i] = 0; // ans[i] = 'A'; candi[i] = aBit | bBit | cBit; } for(int i =0; i< 100; i++) { for(int j =0;j < 8; j++) { for(int k =0; k < 100; k++) { dir[i][j][k] = -1; } } } int result = Mark(str); if(result == A+B+C) return str; int prevResult = result; for(int i = 0; i < A+B+C; i++) { if(isCorret[i]) continue; } return str; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 640 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 640 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |