自定义博客皮肤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)
  • 问答 (1)
  • 收藏
  • 关注

原创 高精度a-b(每日计划2)

比a+b难一点#include<iostream>#include<cstdio>#include<algorithm>using namespace std;struct Bign{ int f[1005]; int len; void read() { string s; cin>>s; len=s.length(); for(int i=1;i<=len;i++) { f[i]=s[len-i

2022-03-26 07:36:13 341

原创 高精度a+b(每日计划1)

简单至极#include<iostream>#include<cstdio>#include<algorithm>using namespace std;struct Bign{ int f[1005]; int len; void read() { string s; cin>>s; len=s.length(); for(int i=1;i<=len;i++) { f[i]=s[len-i]-'

2022-03-25 14:40:25 106

原创 c++简介

int:数字short:短数字long:长数字long long:长数字float:短高精度double:长高精度char:字符string:字符串bool:是否加*(变量前面):指针加const(int,long,short……):不变量struct:自制数据类型struct so{ int a,b,c;};判断符:<,>,==,<=,>=赋值:==...

2022-03-24 09:58:50 1023

原创 解数独程序

算法很简单基本就是挨个枚举#include <iostream>#include <cmath>using namespace std;int a[12][12];int pl[12][12] = { {0,0,0,0,0,0,0,0,0,0}, {0,1,1,1,2,2,2,3,3,3}, {0,1,1,1,2,2,2,3,3,3}, {0,1,1,1,2,2,2,3,3,3}, {0,4,4,4,5,5,5,6,6,6}, {0,4,4,4,5,5

2022-03-24 09:01:50 143

原创 找宝藏游戏

很简单#include<cstdio>#include<iostream>#include<algorithm>using namespace std;int main(){ char z[10][10]; for(int i=1;i<=10;i++) { for(int j=1;j<=10;j++) { z[i][j]='X'; } } int s[11]; srand(time(NULL)); s

2022-03-23 09:46:12 4680

原创 猜数游戏^_^

代码十分简单#include<cstdio>#include<iostream>#include<algorithm>#include<vector>#include<string>#include<cstring>#include<bits/stdc++.h>#include<map>#include<queue>using namespace std;int erci(in

2022-03-23 08:39:33 51

原创 写论文机器

十分简单#include <bits/stdc++.h>using namespace std;int a=8,b=6,c=9,d=6,e=3;string start[100]={ "美好的一天从知道今天是美好的一天开始,我思考了一个问题", "众所周知,有的事物是无法用文字描述的,比如:", "人生有生死离别,最有意义的是这件事,", "不同的人对不同的问题有不同的想法,突然一个问题浮现在我眼前", "今天又是开发人类大脑极限的一天。",...

2022-03-22 09:33:58 96

原创 所有质数寻找

#include <bits/stdc++.h>using namespace std;bool zhi(long long n){ if (n <= 1)//不满足的情况 { return false; } for (long long i = 2; i * i <= n; i++) { if (n % i == 0) { return false; ...

2022-03-21 14:34:38 48

原创 加密文字及数字

虽然现在没有什么有加密,但是加密还是很好玩的,写日记同样也能用到。由于汉字太多,我将它们转换成了字母及数字例如:混=hùn=h u n 4我们可以用以下加密方法:1.a b c d e f g h i j k l m n o p q r s t u v w x y z...

2022-03-21 13:59:08 1751

原创 C++微信红包模拟

代码很简单#include<cstdio>#include<iostream>#include<algorithm>using namespace std;int main(){ int x,y,z; cin>>x;//人数 cin>>y;//总钱数 if(x==y) { for(int i=1;i<=x;i++) { cout<<"1"&lt

2022-03-21 11:32:26 1414 2

原创 c++自制小游戏(不完美)

我做的一个挖矿小游戏,后面会改进一些读入与输出,有建议的话记得评论区留言。上代码:#include <bits/stdc++.h>using namespace std;struct block{ int type,hard;};int xx=7,yy=0,hunger=100,money=0,strong=1;int price[100]={1,5,8,8,10,12,30,60,100,170,130,170,300,180,220,400,20};int bpr...

2022-03-21 11:23:46 6000 3

空空如也

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

TA关注的人

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