合集-开源
【开源】贪吃蛇小游戏
摘要:#include<bits/stdc++.h> //清屏:system("cls"); 1:'◎' 2:'⊙' 3:'▲' 4:'◆' 5:'■' #include<windows.h> //停顿:Sleep(); #include<conio.h> using namespace std; int
【开源】24点
摘要:#include <iostream> using namespace std; bool flag; int a[5][4]; int cal(int a,int b,int k){ if(k==0) return a+b; else if(k==1) return a*b; else if(k=
【开源】画数字
摘要:#include<bits/stdc++.h> using namespace std; int num[int(1e8+5)],n; void paint() { string pho[7];//1:左 2:右 3:双 4:全 5、6:10 pho[1] = " ▇ "; pho[2] = " ▇
【开源】int,long long去一边去:高精度大合集!
摘要:加法 string add(string s1, string s2) { //时间复杂度 O(log n) string res = ""; int c = 0, i = 0; while (i<s1.size() || i < s2.size() || c>0) { int a