Passphrase Obfuscation

Nel testo fornito per il .c viene definito MAXN a 20’000 quando nel testo è 2 <= N <= 30’000, se non lo si corregge mi sbaglia gli ultimi 2 testcases

/*
 * This template is valid both in C and in C++,
 * so you can expand it with code from both languages.
 * NOTE: it is recommended to use this even if you don't
 * understand the following code.
 */

#include <stdio.h>
#include <assert.h>

// constraints
#define MAXN 20000

// input data
int N, K;
char passphrase[MAXN+10];

int main() {
//  uncomment the following lines if you want to read/write from files
//  freopen("input.txt", "r", stdin);
//  freopen("output.txt", "w", stdout);

    assert(2 == scanf("%d %d", &N, &K));
    assert(1 == scanf("%s", passphrase));

    // insert your code here
    
    printf("%s\n", passphrase); // print the result
    return 0;
}

In gara valeva 2 \leq N \leq 20000, poi il testo è stato aggiornato. Immagino ci sia stata un svista per questo motivo.

1 Mi Piace

Esattamente, gli allegati non erano stati aggiornati nemmeno in gara per nostra (leggesi: mia :laughing:) dimenticanza. Li ho sistemati ora (il problema c’era anche con Pascal) e ricaricati sulla piattaforma.

Grazie per la segnalazione!

1 Mi Piace