| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 14899 | cepiloth | 줄 세우기 (KOI13_jul) | C++98 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TRUE 1
#define FALSE 0
typedef char BOOL;
BOOL getUserMessage(char* arg)
{
char szTemp[256];
printf("input first change \r\n");
scanf("%c", szTemp);
arg = (char*)malloc(sizeof(char) * strlen(szTemp));
strcpy(arg, szTemp, strlen(szTemp));
return TRUE;
}
int main()
{
BOOL nRet = TRUE;
nRet = getUserMessage();
if(nRet == FALSE)
printf("invalid message exit() \r\n");
return TRUE;
}
