自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 A1082.Read Number in Chinese(25)

参考代码//将一个有符号的数字部分不大于9位的数字按照中文的读的方式输出 #include <cstdio>#include <cstring>char num[10][5]={ "ling","yi","er","san","si","wu","liu","qi","b

2018-07-19 19:23:13 243

原创 A1061.福尔摩斯的约会(20)

自己没有写出来 参考代码#include <cstdio>#include <cstring>int main(){ char week[7][5]={ "MON","TUE","WES","THU","FRI","SAT","SUN"}; char str1[70],str2[70]

2018-07-18 19:39:17 161

原创 A1077.Kuchiguse(20)

参考代码//给定N个字符串,求他们的公共后缀,如果不存在公共公共后缀,则输出"nai" #include <cstdio>#include <cstring>int n,minLen=256,ans=0;char s[100][256];//至多100个字符串,每个字符串至多256个字符int main(){ scanf("%d",&n);//n...

2018-07-18 19:29:58 311

原创 A1035.Password

自己的代码:#include <cstdio>#include <cstring>#define namesize 11#define passsize 10#define maxsize 10struct node{ char name[namesize]; char pw[passsize]; int flag=0;};void check(...

2018-07-17 20:00:16 162

原创 A1005.Spell It Right(20)

自己的代码#include <cstdio>#include <cstring>#define MaxSize 100int main(){ char a[10][10]={"zero","one","two","three","four","five","six","seven"

2018-07-16 21:04:08 202

原创 顺序栈含有数组的初始化失败问题

今天写了一个栈的初始化,发现初始化失败。代码如下#include <cstdio> #define MaxSize 5typedef struct{ int data[MaxSize]; int top;}SqStack;void init(SqStack &S){ S.top=-1; S.data[MaxSize]={0};//这里无法实现 }int...

2018-07-14 10:04:48 774 1

原创 A1001.A+B Format(20)

自己的代码#include <cstdio>#include <cmath>#define MaxSize 10using namespace std;typedef struct{ int data[MaxSize]; int top;}SqStack;void init2(int A[MaxSize]){ A[MaxSize]={0};}void ...

2018-07-14 09:51:35 174

原创 A1073.科学计数法(20)

参考代码#include <cstdio>#include <cstring> int main(){ char str[10010]; gets(str); int len=strlen(str); if(str[0]=='-') printf("-");//如果是负号,则输出负号 int pos=0;//pos存放字符串中E的位置 while(str...

2018-07-13 09:13:53 212

原创 A1019.General Palindromic Number(20)

自己的代码#include <cstdio>int main(){ int n,num,i=0,temp;//定义进制数和数字 int a[20]={0};//用于存放转换为进制后的数字 scanf("%d %d",&num,&n); while(num!=0){ temp=num%n; a[++i]=temp; num=num/n; } ...

2018-07-10 21:06:01 166

原创 A1031.Hello World for U(20)

自己的代码#include <cstdio>#include <cstring>int main(){ char str[100]; printf("请输入字符串:\n"); gets(str); int len=strlen(str); int a=(len+2)%3; int high,width;//high表示算上拐角的高度,width表示算上拐角的...

2018-07-08 20:23:21 244

原创 A1006.Sign In and Sign Out(25)

这里自己没有写出来,问题如下1,如何在一行输入英文id和以:分隔的时间,时间如何存储,以字符串吗,那要比较大小的时候如何转换成数字2,这里时间比较好麻烦啊,先要比较小时然后分钟然后秒,一个一个人比较吗,还是存储max和min3,感觉整体逻辑有点麻烦,看着就不想做参考代码:#include <iostream>#include <cstdio>#include <c...

2018-07-02 21:43:25 294

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除