#25675: 求解NA(49%)


862696 (unknown)

School : No School
ID : 153448
IP address : [1.165.84.85]
Last Login :
2021-06-18 12:47:32
a009. 解碼器 -- ACM 458 | From: [1.165.80.216] | Post Date : 2021-06-11 14:52

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

int main(void)

{

    char cin[500];

    int i = 0, s = 0;

    gets(cin); 

    s =  strlen(cin);

  for(i=0;i<=(s-1);i++)

{

cin[i]=cin[i] - 7;

}

    printf("%s", cin);

    return 0;

 

 

 RE (SIGABRT)

 

系統呼叫了 abort 函式!
*** stack smashing detected ***:  terminated
Aborted (core dumped)
 
ZeroJudge Forum