-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L0 有些重复 #44
Open
jinshayumi
wants to merge
39
commits into
luckymark:master
Choose a base branch
from
jinshayumi:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
L0 有些重复 #44
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
1461d81
Add files via upload
jinshayumi 6e01ae9
Create L0,L1PART
jinshayumi 70de778
hanoi
jinshayumi 5bb6bc3
hanoi
jinshayumi ae78780
new level 1
jinshayumi bf52a24
changes
jinshayumi 519c20b
Delete 1万你好.c
jinshayumi 6d854d5
Delete 2到100偶数.c
jinshayumi 4e60002
Delete 3个数.c
jinshayumi f430b3b
Delete 3整除5不整除.c
jinshayumi 6fbf106
Delete 5个数.c
jinshayumi cc3cbb6
Delete 5个比大小.c
jinshayumi 357654f
Delete 99.c
jinshayumi 572c795
Delete JCC.c
jinshayumi 5eb085c
Delete L0,L1PART
jinshayumi 4ad7c70
Delete hello.c
jinshayumi 43597b7
Delete n个大小.c
jinshayumi c3bad89
Delete n个数.c
jinshayumi fcd606b
Delete zj.c
jinshayumi dd81311
Delete 奇偶 13.c
jinshayumi 8ce52ed
Delete 跟7有关.c
jinshayumi 3851542
Delete 闰年.c
jinshayumi 9b4a5b8
new level 0
jinshayumi 4848cc1
maze
jinshayumi 866acb7
fighter main
jinshayumi 4009b32
Create fighter music
jinshayumi b96672c
Create fighter bullet
jinshayumi cb0845c
canvas
jinshayumi 416439b
circuit
jinshayumi 5d8eee0
point and circle
jinshayumi b787db5
queue
jinshayumi 3aacdd1
Update fighter main
jinshayumi b828a32
bigboss
jinshayumi 4528cdd
Create bigbullet
jinshayumi 01cb96f
Create enemy
jinshayumi e972cca
Create gift
jinshayumi b47f338
Create smallboss
jinshayumi b785668
Create smallbullet
jinshayumi dda98ab
Create super skill
jinshayumi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include<stdio.h> | ||
void move(int n,int x,int y,int z) | ||
{ | ||
if(n==1) | ||
{ | ||
move(n-1,x,z,y); | ||
printf("%c->%c\n",x,z); | ||
move(n-1,y,x,z); | ||
} | ||
} | ||
void main() | ||
{ | ||
int h; | ||
printf("\ninputnumber:\n"); | ||
scanf("%d",&h); | ||
printf("the step to moving %2d diskes:\n",h); | ||
move(h,'a','b','c'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include<stdio.h> | ||
|
||
void main() | ||
{ | ||
int i; | ||
for(i=1;i<=10000;i++) | ||
{ | ||
printf("hello "); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include<stdio.h> | ||
|
||
void main() | ||
{ | ||
int a; | ||
for(a=2;a<=100;a=a+2) | ||
{ | ||
printf("%d ",a); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include<stdio.h> | ||
void main() | ||
{ | ||
int a; | ||
for(a=1;a<=100;a++) | ||
{ | ||
if(a%3==0&&a%5!=0) | ||
printf("%d\n",a); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include <stdio.h> | ||
|
||
void main() | ||
{ | ||
int a,b,c; | ||
printf("������������"); | ||
scanf("%d %d %d",&a,&b,&c); | ||
if(a>b) | ||
{ | ||
if(a>c) | ||
{ | ||
printf("����Ϊ%d",a); | ||
} | ||
else | ||
{ | ||
printf("����Ϊ%d",c); | ||
} | ||
} | ||
else | ||
{ | ||
if(b<c) | ||
{ | ||
printf("����Ϊ%d",c); | ||
} | ||
else | ||
{ | ||
printf("����Ϊ%d",b); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include<stdio.h> | ||
|
||
void main() | ||
{ | ||
int a[5]; | ||
printf("����5����"); | ||
int i,b; | ||
for(i=1;i<=5;i++) | ||
{ | ||
scanf("%d",&a[i]); | ||
} | ||
printf("û�г��ֵ���Ϊ"); | ||
for(b=0;b<=9;b++) | ||
{ | ||
if(b!=a[1]&&b!=a[2]&&b!=a[3]&&b!=a[4]&&b!=a[5]) | ||
{ | ||
printf("%d",a[i]); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include<stdio.h> | ||
|
||
void main() | ||
{ | ||
int a,b,c; | ||
printf(" *"); | ||
for(a=1;a<=9;a++) | ||
{ | ||
printf("%4d",a); | ||
} | ||
printf("\n"); | ||
for(a=1;a<=9;a++) | ||
{ | ||
printf("%4d",a); | ||
for(b=1;b<=a;b++) | ||
{ | ||
c=a*b; | ||
printf("%4d",c); | ||
} | ||
printf("\n"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include<stdio.h> | ||
|
||
void main() | ||
{ | ||
int a; | ||
for(a=1;a<+100;a++) | ||
{ | ||
if(a%7==0||a%10==7) | ||
{ | ||
printf("%d\n",a); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include<stdio.h> | ||
|
||
void main() | ||
{ | ||
int a,b,k; | ||
const n=5; | ||
int i[n]; | ||
printf("����5������\n"); | ||
for(a=1;a<=n;a++) | ||
{ | ||
printf("i[%d]=",a); | ||
scanf("%d",&i[a]); | ||
} | ||
for(a=1;a<n;a++) | ||
for(b=1;b<=n-a;b++) | ||
if(i[b]>i[b+1]) | ||
{ | ||
k=i[b]; | ||
i[b]=i[b+1]; | ||
i[b+1]=k; | ||
} | ||
for(a=1;a<=n;a++) | ||
printf("%d\n",i[a]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include<stdio.h> | ||
|
||
int jc(int a) | ||
{ | ||
int b=1,i; | ||
for(i=1;i<=a;i++) | ||
{ | ||
b*=i; | ||
} | ||
return b; | ||
} | ||
void main() | ||
|
||
{ | ||
int x,y; | ||
printf("��?��???��y��o"); | ||
scanf("%d",&x); | ||
y=jc(x); | ||
printf("jc=%d",y); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#include <stdio.h> | ||
#include <malloc.h> | ||
|
||
int main() | ||
{ | ||
int n=0; | ||
printf("n��:"); | ||
scanf("%d",&n); | ||
int* p; | ||
int i=0; | ||
int m=0; | ||
p=(int*)malloc(n*sizeof(int)); | ||
printf("��������:\n"); | ||
for(i=0;i<n;i++) | ||
{ | ||
scanf("%d",&m); | ||
*(p+i)=m; | ||
} | ||
|
||
int tmp; | ||
i=0; | ||
m=n-1; | ||
while(i<=m) | ||
{ | ||
tmp=*(p+i); | ||
*(p+i)=*(p+m); | ||
*(p+m)=tmp; | ||
i++; | ||
m--; | ||
} | ||
|
||
i=0; | ||
for(i=0;i<n;i++) | ||
{ | ||
printf("%d ",*(p+i)); | ||
} | ||
free(p); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <stdio.h> | ||
int main() | ||
{ | ||
int a; | ||
printf("������ݣ�"); | ||
scanf("%d",&a); | ||
if(a%400==0||a%100!=0&&a%4==0) | ||
{ | ||
printf("a����"); | ||
} | ||
else | ||
{ | ||
printf("a������"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include<stdio.h> | ||
|
||
double zj(float a,float b,float c) | ||
{ | ||
float d; | ||
if(a<b) | ||
{ | ||
d=a; | ||
a=b; | ||
b=d; | ||
if(a<c) | ||
{ | ||
d=a; | ||
a=c; | ||
c=d; | ||
} | ||
} | ||
else | ||
{ | ||
if(a<c) | ||
{ | ||
d=a; | ||
a=c; | ||
c=d; | ||
} | ||
} | ||
if(a*a==b*b+c*c) | ||
return printf("Ϊֱ��"); | ||
else | ||
return printf("��Ϊֱ��"); | ||
|
||
} | ||
|
||
void main() | ||
{ | ||
float x,y,z,m; | ||
printf("��������:\n"); | ||
scanf("%f%f%f",&x,&y,&z); | ||
m=zj(x,y,z); | ||
printf("%d",m); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
/* run this program using the console pauser or add your own getch, system("pause") or input loop */ | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
|
||
printf("add:1��decode:2��"); | ||
int choose; | ||
scanf("%d",&choose); | ||
if(choose==1) | ||
{ | ||
char add[30],*a; | ||
a=add; | ||
printf("add��"); | ||
scanf("%s",add); | ||
while(*a!='\0') | ||
{ | ||
*a=*a+'B'-'m'; | ||
a++; | ||
} | ||
printf("%s",add); | ||
} | ||
|
||
else if(choose==2) | ||
{ | ||
char decode[30],*b; | ||
b=decode; | ||
printf("decode��"); | ||
scanf("%s",decode); | ||
while(*b!='\0') | ||
{ | ||
*b=*b+'m'-'B'; | ||
b++; | ||
} | ||
printf("%s",decode); | ||
} | ||
|
||
else | ||
{ | ||
printf("error"); | ||
} | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include<stdio.h> | ||
int main() | ||
{ | ||
int life,tn,qn,ds,son; | ||
printf("age may be��"); | ||
for(life=1;life++;life<=100) | ||
{ | ||
tn=life/6; | ||
qn=life/12; | ||
ds=life/7; | ||
son=life/2; | ||
|
||
if(life==tn+qn+ds+5+son+4&&life%84==0) | ||
{ | ||
printf("%d",life); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include<stdio.h> | ||
int main() | ||
{ | ||
int a,b,c; | ||
printf("primes from 2-1000��2\t"); | ||
for(a=3;a<=1000;a++) | ||
{ | ||
c=0; | ||
for(b=2;b<a;b++) | ||
{ | ||
if(a%b!=0) | ||
c++; | ||
} | ||
if(c==a-2) | ||
{ | ||
printf("%d\t",a); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后缀名不对