제출 #731713

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
7317132023-04-27 20:44:50rainboyASM (LMIO18_asm)C11
79 / 100
50 ms852 KiB
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 50
#define M 18
#define K 1212
#define A 1000000000000000000LL
#define INF 0x3f3f3f3f
int min(int a, int b) { return a < b ? a : b; }
int ppp[M + 1][K][M], ll[M + 1][K], kk[M + 1], pp[M];
void brute(int m, int s, int p, int l) {
int h;
pp[l] = m - s;
for (h = 0; h <= l; h++)
ppp[m][kk[m]][h] = pp[l - h];
ll[m][kk[m]] = l + 1;
kk[m]++;
for (p = min(p, m - 1 - s); p > 0; p--)
pp[l] = p, brute(m, s + p, p, l + 1);
}
void init() {
int m;
for (m = 1; m <= M; m++)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

asm.c: In function 'main':
asm.c:94:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   94 |      if (aa[g] < 0 || aa[g] == 0 && g + 1 < l || aa[g] > 0 && xx[0] > zz0[g] / aa[g]) {
      |                       ~~~~~~~~~~~^~~~~~~~~~~~
asm.c:94:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   94 |      if (aa[g] < 0 || aa[g] == 0 && g + 1 < l || aa[g] > 0 && xx[0] > zz0[g] / aa[g]) {
      |                                                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
asm.c:103:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  103 |      if (aa[g] % aa[g - 1] != 0 || aa[g] > 0 && bb[g - 1] > bb[g] / (aa[g] / aa[g - 1])) {
      |                                    ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
asm.c:43:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   43 |  scanf("%d", &n);
      |  ^~~~~~~~~~~~~~~
asm.c:45:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   45 |   scanf("%lld%lld", &x, &y);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
asm.c:66:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   66 |   scanf("%lld%s", &xx[i], yy[i]), mm[i] = strlen(yy[i]);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...