U E D R , A S I H C RSS

Code Race/2015.5.15/진짜김정빈

Difference between r1.5 and the current

@@ -67,26 +67,11 @@
printf("1~%d의 합 = %d", j, plus(j));
}

문제 2 헤더:
문제 2 gugu.h:


void team();
void gugu();
 
 
문제 2 메인:
 
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "gugu.h"
 
 
void main(){
team();
gugu();
}
void team(){


@@ -159,3 +144,17 @@
}


문제 2 CodeRacing.c:
 
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "gugu.h"
 
 
void main(){
team();
gugu();
}
 



문제1 코드:

#include <stdio.h>


int plus(int n){
if (n == 0){
return 0;
}
else if (n == 1){
return 1;
}
else {
return n + plus(n - 1);
}
}

void main(){


int j=0;


printf("
:. : \n"
" *== +++ =**\n"
"
=: :.. +++ :*. :==\n"
" *:* **+ ++* * + ***\n"
" .+* ** *:*\n"
" *=+= := .+ +:\n"
" +=** :++ . . ...\n"
" .===: . . #=============#+\n"
" ..:+===: * *=\n"
" . . * . .*=\n"
" * :##** .*=\n"
" ..++ .*+. * ##**** *=\n"
" . :++*++. =###### +#*#: # ****#. ...:#+\n"
" :==++== =####*****##. ##*#***** ##**= ##****.:::::...\n"
" .. =*#******###*= +***#:.***+ .****::***# :+#***** +\n"
" +*#***##*+=:.. +#*#=. ****+*#%*=. .#*** .+*##:#****:+**##.\n"
" :*#*#*==: *#*****.. =*#**. .*****##*: *****+###*. :#***###:\n"
" #***** .:. #*****##****#*. =#####**. .****\n"
" ... *****+ ....=**.. :******#******= .:+:.\n"
" ====+:.. #*******###%*= .:##**##++. +**.\n"
" ++#######+=. :*%##***#+. +**\n"
" .++=+: ...#***#. ***\n"
" =+= . +*#*: :##\n"
" .*+ = :+:+.\n"
" ...+= : .===**\n"
" ++ .=. :+.\n"
" ..+*=+ .. +=:.\n"
" =**+ :+ #:+ +\n"
" ++= . :+ =*==\n"
" +**: ++ ++= . ++\n"
"
+ =+= ::: **\n"
" = ++ . :\n"
" = *+\n");




printf("Team Name : 진짜김정빈\n");
printf("Team Member : 김정빈, 류재상\n");
printf("########################################\n");

printf("N : ");
scanf("%d", &j);
printf("1~%d의 합 = %d", j, plus(j));
}

문제 2 gugu.h:


void team();
void gugu();
void team(){



printf("
:. : \n"
" *== +++ =**\n"
"
=: :.. +++ :*. :==\n"
" *:* **+ ++* * + ***\n"
" .+* ** *:*\n"
" *=+= := .+ +:\n"
" +=** :++ . . ...\n"
" .===: . . #=============#+\n"
" ..:+===: * *=\n"
" . . * . .*=\n"
" * :##** .*=\n"
" ..++ .*+. * ##**** *=\n"
" . :++*++. =###### +#*#: # ****#. ...:#+\n"
" :==++== =####*****##. ##*#***** ##**= ##****.:::::...\n"
" .. =*#******###*= +***#:.***+ .****::***# :+#***** +\n"
" +*#***##*+=:.. +#*#=. ****+*#%*=. .#*** .+*##:#****:+**##.\n"
" :*#*#*==: *#*****.. =*#**. .*****##*: *****+###*. :#***###:\n"
" #***** .:. #*****##****#*. =#####**. .****\n"
" ... *****+ ....=**.. :******#******= .:+:.\n"
" ====+:.. #*******###%*= .:##**##++. +**.\n"
" ++#######+=. :*%##***#+. +**\n"
" .++=+: ...#***#. ***\n"
" =+= . +*#*: :##\n"
" .*+ = :+:+.\n"
" ...+= : .===**\n"
" ++ .=. :+.\n"
" ..+*=+ .. +=:.\n"
" =**+ :+ #:+ +\n"
" ++= . :+ =*==\n"
" +**: ++ ++= . ++\n"
"
+ =+= ::: **\n"
" = ++ . :\n"
" = *+\n");




printf("Team Name : 진짜김정빈\n");
printf("Team Member : 김정빈, 류재상\n");
printf("########################################\n");








}


void gugu(){

int i, j, M, N;
srand(time(NULL));

team();
scanf("%d", &M);
for (i = 1; i <= M; i++){
N = rand() % 9 + 1;
for (j = 1; j < 10; j++){
printf("%d * %d = %d\n", N, j, N*j);
}
}
}


문제 2 CodeRacing.c:

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "gugu.h"


void main(){
team();
gugu();
}


Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:56
Processing time 0.0389 sec