07 2023 档案
小青蛙跳台阶
摘要:#include <iostream> using namespace std; int a(int n){ if(n<=2){ return n; }else{ return a(n-1)+a(n-2); } } int main(int argc, char** argv) { system("
阅读全文
求最大公因数
摘要:#include <iostream> using namespace std; int i(int w,int k){ if(w%k==0){ return k; }else{ return i(k,w%k); } } int main(int argc, char** argv) { int w
阅读全文
9 9乘法表
摘要:#include <iostream> using namespace std; int main(int argc, char** argv) { int a[10][10]; for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ a[i][j]=i*j; c
阅读全文
棋盘移动
摘要:#include <iostream> using namespace std; int a(int n){ if(n==4){ cout<<"4,5-->9,10"<<endl; cout<<"8,9-->4,5"<<endl; cout<<"2,3->8,9"<<endl; cout<<"7,8
阅读全文
阶乘
摘要:#include <iostream> using namespace std; int a(int n){ if(n<=2){ return 1; } return a(n-1)+a(n-2);//a(n-1)*n } int main(int argc, char** argv) { syste
阅读全文
数字三角形
摘要:#include <stdio.h> #include<iostream> #include <iomanip> using namespace std; int main(){ int data[9][9]; int i=0; int j=0; for(i=0;i<9;i++){ for (j=0
阅读全文
车厢重组
摘要:#include <iostream> using namespace std; int main(int argc, char** argv) { int n,b,c; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; } for(int i=0
阅读全文
小数变整数
摘要:#include <iostream> #include <cmath> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input
阅读全文
字符串的展开
摘要://字符串的展开 #include <bits/stdc++.h> using namespace std; int p1,p2,p3; string S,Ans; char ToChar(char ch){ if(p1==3){ return '*'; } return p1==1?tolower
阅读全文
魔刀千刃
摘要:#include <iostream>#include "minecraft.h"#include "Windows.h"TxMinecraft mc;using namespace std;int X,Y,Z,id=0,data=0;int a=0;void chu_shi_hua() { X=4
阅读全文
1
摘要:#include <iostream> using namespace std; int main(int argc, char** argv) { char n[8]; int b=0; for(int i=0;i<8;i++){ cin>>n[i]; } for(int i=0;i<8;i++)
阅读全文
猫和老鼠
摘要:#include <bits/stdc++.h> using namespace std; int main(int argc, char** argv) { int N,x,y,X,Y; cin>>N; for(int k=0;k<N;k++){ int m=0,c=0,count=0; stri
阅读全文
四合院
摘要:#include <iostream> #include "minecraft.h" #include "Windows.h" TxMinecraft mc; using namespace std; int x,y,z,id,data; int b=0; void a(){ mc.setVaria
阅读全文
蜡笔小新
摘要:#include <iostream> #include <string> #include "Windows.h" #include "minecraft.h" TxMinecraft mc; using namespace std; int main(int argc, char** argv)
阅读全文
100000之内取回文数
摘要:#include <iostream> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int main
阅读全文
剪刀石头布
摘要:#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main(int argc, char** argv) { /*int x,y,n,ans=0; for(int i=50;i<=60;i
阅读全文
计算机
摘要:#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main(int argc, char** argv) { int x,y,symbol,ans; int n,temp,sum=0; s
阅读全文
病毒
摘要:#include <bits/stdc++.h> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int
阅读全文
回文数
摘要:#include <iostream> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; int main
阅读全文
沙漠神殿 (x)
摘要:#include <iostream> #include <string> #include "minecraft.h" using namespace std; TxMinecraft mc; int x,y,z,id,data; void a(){ //第一面 id=24; data=2; mc
阅读全文
一位数组(比大小)
摘要:#include <iostream> using namespace std; int main(int argc, char** argv) { int q[3]{1,2,3}; int max; cin>>max; for(int i=0;i<3;i++){ if(max<q[i]){ max
阅读全文
幽灵粒子
摘要:#include <iostream> using namespace std; int main() { int n,l,d,e; cin>>n>>l; int a[n],b[n],c[n]; for(int i=0;i<n;i++){ cin>>a[i]; b[i]=max(l+1-a[i],a
阅读全文
平台上的小球
摘要:#include <iostream> using namespace std; int main(int argc, char** argv) { int N; cin>>N; int H[1001]; int L[1001]; int R[1001]; for(int i=1;i<=N;i++)
阅读全文
逢7必过
摘要:#include <iostream> using namespace std; int main(int argc, char** argv) { for(int i=1;i<=20;i++){ if(i%7==0||i%10==7){ cout<<"pass"<<endl; }else{ cou
阅读全文