Day 01. 你很喜歡且歌名中帶有顏色的歌
Day 02. 你很喜歡且歌名中帶有數字的歌
Day 03. 讓你聯想到夏日時光的歌
Day 04. 讓你想起一個你寧可忘記的人的歌
Day 05. 放得超~大聲才過癮的歌
Day 01. 你很喜歡且歌名中帶有顏色的歌
Day 02. 你很喜歡且歌名中帶有數字的歌
Day 03. 讓你聯想到夏日時光的歌
Day 04. 讓你想起一個你寧可忘記的人的歌
Day 05. 放得超~大聲才過癮的歌
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <time.h> | |
#define RANDOM (double)rand()/RAND_MAX | |
int main() | |
{ | |
double x,y,z,counter; | |
long int n=100000000,N=n; | |
srand(time(NULL)); |
#include <stdio.h> | |
int get_from_addr(int* p){ | |
return *p; | |
} | |
int main(){ | |
int m = 10; | |
int *p = &m; | |
int n=get_from_addr((int *)p); | |
int* list[] = {p}; | |
printf("%d", get_from_addr((int *)list[0])); |
/* | |
[Input.txt] | |
10000 | |
9 | |
Set 0 String Hello, World, RRRRRR. | |
Set 15 int 2147483647 | |
Set 1000 short 65535 | |
Get 0 int | |
Get 15 short |
#include <stdio.h> | |
long long int get_from_addr(long long int* p){ | |
return *p; | |
} | |
char* itobs(long long int n, char *ps) { | |
int size = 8 * sizeof(n); | |
int i = size -1; | |
while(i+1) { | |
ps[i--] = (1 & n) + '0'; | |
n >>= 1; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
int getRank(int n,char *rank,char card[][3]); | |
int getSuit(int n,char *suit,char card[][3]); | |
int isAKind(int n,char *rank,char card[][3],int *checked); | |
int isFull(char *rank,char card[][3],int *checked); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
int getRank(int n,char *rank,char card[][3]); | |
int getSuit(int n,char *suit,char card[][3]); | |
int isAKind(int n,char *rank,char card[][3],int *checked); | |
int isFull(char *rank,char card[][3],int *checked); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <ctype.h> | |
int mem[65540]={0}; | |
int main(){ | |
int N; | |
while(~scanf("%d",&N)){ | |
memset(mem,0,sizeof(mem)); | |
int k,addr,val_n; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
char word[10][4]={{},{},{"ABC"},{"DEF"},{"GHI"},{"JKL"},{"MNO"},{"PRS"},{"TUV"},{"WXY"}}; | |
int main(){ | |
char in[105]; | |
while(gets(in)!=NULL){ | |
int len=strlen(in),flag=0,numl; | |
char num[8]; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#include <ctype.h> | |
double f(int n){ | |
return n<=1?1:n*f(n-1); | |
} | |
int main(){ | |
char str[100]={0}; |