Skip to content

Instantly share code, notes, and snippets.

jwon0615

Block or report user

Report or block jwon0615

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jwon0615
jwon0615 / dominofilling9.cpp
Created May 3, 2018
블럭채우기9번 문제
View dominofilling9.cpp
//
// dominofilling9.cpp
// 블럭채우기 9
//
// Created by 박지원 on 2018. 5. 2..
// Copyright © 2018년 Sejong Academy of Science and Arts. All rights reserved.
//
#include <stdio.h>
#define m 100007
@jwon0615
jwon0615 / 1402.cpp
Created Mar 26, 2018
1_codeup_연습문제_동적할당
View 1402.cpp
#include <stdio.h>
#include <stdlib.h>
int main() {
int i,n;
scanf("%d",&n);
//int *p = (int *)malloc(sizeof(int));
int *p = (int *)malloc(sizeof(int)*n);
for (i=0; i<n; i++) scanf("%d",p+i);
for (i=(n-1); i>=0; i--) printf("%d ",*(p+i));
@jwon0615
jwon0615 / 3108_list_arr.cpp
Created Mar 26, 2018
5_codeup_연습문제_연결리스트
View 3108_list_arr.cpp
#include <stdio.h>
typedef struct Student {
int no;
char name[10];
}student;
void insertSt (student *p, student t, int *n) {
int i;
for (i=0; i<*n && p[i].no<=t.no; i++) if(p[i].no==t.no) return;
for (int j=*n-1; j>=i; j--) p[j+1]=p[j];
@jwon0615
jwon0615 / 1469.cpp
Created Mar 26, 2018
4_codeup_연습문제_배열
View 1469.cpp
#include <stdio.h>
int main(void){
int n, arr[100][100];
scanf("%d",&n);
for(int i=0;i<n;i++){
for(int j=0;j<n;j++)
arr[i][j]= n*i+(i%2?j+1:n-j);
}
@jwon0615
jwon0615 / 1916.cpp
Created Mar 26, 2018
3_codeup_연습문제_재귀
View 1916.cpp
#include <stdio.h>
int fibo(int n, int a, int b){
if (n==0) {
return a;
}
fibo(n-1, b,(a+b)%10009);
}
int main(){
@jwon0615
jwon0615 / 1721.cpp
Last active Mar 26, 2018
2_codeup_연습문제_구조체
View 1721.cpp
#include <stdio.h>
#include <math.h>
typedef struct {
int x, y;
}point;
int main(){
point p1, p2;
double i;
scanf("%d %d %d %d", &p1.x, &p1.y, &p2.x, &p2.y);
View 1402_golf.cpp
i,n,a[1001];main(){scanf("%d",&n);for(;i<n;)scanf("%d",&a[i++]);for(i--;i>=0;)printf("%d ",a[i--]);}
View 1810_golf.cpp
main(a,b,i){char*c=malloc(100);scanf("%s\n%d %d",c,&a,&b);for(i=a-1;i<b;)printf("%c",*(c+i++));}
@jwon0615
jwon0615 / 1510.cpp
Created Mar 22, 2018
1510 : 홀수 마방진
View 1510.cpp
#include<stdio.h>
int main()
{
int n, i, j, d[50][50], m = 1, a, b;
scanf("%d", &n);
for(i = a = 0, b = n / 2; i < n; i++)
{
for(j = 0; j < n; j++)
@jwon0615
jwon0615 / 1508.cpp
Created Mar 22, 2018
1508 : 나도 IQ 150
View 1508.cpp
#include<stdio.h>
int main()
{
int n, i, j, map[21][21];
scanf("%d", &n);
for(i = 1; i <= n; i++)
scanf("%d", &map[i][1]);
You can’t perform that action at this time.