![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
生活使用小程序
zhujunhuan?
全宇宙第一帅,第一强,第一牛,第一(此处省略100000000000000000000000000000000个夸人的词语)
展开
-
c++对拍(考场必备)
在考场上你不能肯定自己的代码正确,你可以写一个暴力程序,与你的代码进行对拍,以验证你的代码的正确性。(显然暴力程序不能写错)1.首先,你要将你准备提交评测的程序,名为sol.cpp。将改程序从cin.in中读取输入数据,并将答案输出到sol.out中2.准备你的暴力的程序,名为bf.cpp。将改程序从cin.in中读取输入数据,并将答案输出到bf.out中3.写一个随机生成程序的代码,名为make.cpp,将随机数据输出到cin.in中。4.你现在要写一个脚本,循环运行:运行make.exe,运行so原创 2022-07-09 20:44:43 · 981 阅读 · 0 评论 -
c++贪吃蛇
贪吃蛇原创 2022-07-07 15:33:50 · 86 阅读 · 0 评论 -
MC(c++)转载
#include<bits/stdc++.h>#include<time.h>#include<conio.h>#include<Windows.h>using namespace std;string name,gname,wqm="手",hjm="空";long long gly,hjnx=-1,hjz=0,pg=0,s=20,ssx,csg=1,wq=0,gjz=csg+wq,t,z=0,l=0,x=0,y=60,u,sy=2,dy=1,fm转载 2022-01-21 17:36:41 · 1070 阅读 · 0 评论 -
五子棋(c++)
//wuziqi.h#ifndef _WUZIQI_H_#define _WUZIQI_H_#include <iostream>using namespace std;class chessboard;class chessboard{public: int judge(); void build();//建立棋盘 void changeblack(int goalx, int goaly, int& goal);//改变棋盘数组元素即更新棋子 void ch原创 2022-01-20 07:42:12 · 688 阅读 · 0 评论 -
随机生成计算题
随机生成计算题,可以帮助需要提升计算能力的朋友。代码里有便民文字,我就不多介绍了。#include<bits/stdc++.h>using namespace std;int main(){ long long n,a,x,z,s,s1,l,y,a1,m123,yushu; double t=0; srand(time(0)); cout<<"你总共要做几题。如5 就是做5题"<<endl; cin>>n; cout<&原创 2022-01-04 07:52:10 · 1064 阅读 · 0 评论 -
逛超市的灵感c++
大家逛超市是否为找东西而烦恼!!!???#include<bits/stdc++.h>#include<windows.h>using namespace std;map <string, pair <int, int> > m; const int N = 1e6 + 10;string f[N];int len;bool fx[N], fy[N];int main(){ while(1) { int a; cout <&l原创 2021-12-31 11:25:30 · 639 阅读 · 0 评论