Skip to content

Instantly share code, notes, and snippets.

View kurimulion's full-sized avatar

ChiaoChuo kurimulion

View GitHub Profile
for(j=0;j<=a;j++){
num1[j]=num1[j]*i;
if(num1[j]>=10 && num1[j]<100){
temp=num1[j];
num1[j]=temp%10;
num1[j+1]=num1[j+1]+temp/10;
}
}
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
int a,j,i,num1[300]={0},n,temp;
scanf("%d",&n);
num1[0]=1;
for(i=1;i<=n;i++){
for(a=299;a>=0;a--)
if(num1[a]!=0)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
int a,j,i,num1[300]={0},n,temp;
scanf("%d",&n);
num1[0]=1;
for(i=1;i<=n;i++){
for(a=299;a>=0;a--)
if(num1[a]!=0)
//09/02/14 13:01
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void sort(int [],int);
int main(void)
{
int a[30],i;
srand(time(NULL));
for(i=0;i<30;i++) a[i]=rand() %100;