top of page

소스 코드 제출

공개·회원 71명

2025-04-13

#include <stdio.h>

int s[200]={}



void push(int a)

{

top++;

s[top]=a;

}



int pop()

{

if(top!=-1)

{

top--;

}

return s[top+1];

}



int main()

{

int b;

char arr[500]={};

scanf("%d", &b);

scanf("%s", arr);

for(int i=b-1;i>=0;i--)

{

push(arr[i]);

if(top%4==2)

{

push(',');

}

}

}

3회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page