This file contains hidden or 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
4854646 |
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
int main(){ | |
char in[100]; | |
int m,n; | |
while(scanf("%s%d%d",&in,&m,&n)!=EOF){ | |
getchar(); | |
char chr=getchar(); | |
int flag=-1; | |
char s1[100],s2[100]; |
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
int main(){ | |
char in[100]; | |
int m,n; | |
while(scanf("%s%d%d",&in,&m,&n)!=EOF){ | |
getchar(); | |
char chr=getchar(); | |
int len1=0,len2=0,flag=1; | |
for(int i=0;i<strlen(in);i++){ |
This file contains hidden or 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
0000000000400804 <main>: | |
400804: 55 push rbp | |
400805: 48 89 e5 mov rbp,rsp | |
400808: 48 83 ec 10 sub rsp,0x10 | |
40080c: 64 48 8b 04 25 28 00 mov rax,QWORD PTR fs:0x28 | |
400813: 00 00 | |
400815: 48 89 45 f8 mov QWORD PTR [rbp-0x8],rax | |
400819: 31 c0 xor eax,eax | |
40081b: c7 45 f0 00 00 00 00 mov DWORD PTR [rbp-0x10],0x0 | |
400822: bf 55 09 40 00 mov edi,0x400955 |
This file contains hidden or 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
//Fig.3.1:fig03_01.cpp | |
//Define class GradeBook with a member function displayMessage, | |
//cteate a Gradebook object, and call its display Message function. | |
#include<iostream> | |
using namespace std; | |
//GradeBook class definition | |
class Gradebook | |
{ | |
public: |
This file contains hidden or 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
while(~scanf("%s",start)){ | |
if(!strcmp(start,"EndMemDump")){ | |
scanf("%d",&n); | |
for(int i=0;i<n;i++){ | |
scanf("%s",addr); | |
gets(type); | |
} | |
} | |
else{ |
This file contains hidden or 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
#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}; |
This file contains hidden or 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
#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]; |
This file contains hidden or 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
#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; |
This file contains hidden or 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
#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); |
OlderNewer