-
个人简介
你是我个人主页的第
个访问者。
目前学习:课件
5000位
代码
#include <bits/stdc++.h> #include <windows.h> using namespace std; int a=10000,b,c=70000,d,e,f[70001],g,n=-1,len; char str[100005]="141"; int main() { cout << "请问您想输出π后几位?\n"; scanf("%d",&len); for(;b-c;) f[b++]=a/5; for(;d=0,(g=c*2)&&n<=len;c-=14,~n&&sprintf(str+n, "%.4d",e+d/a),n+=4,e=d%a) for(b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b); printf("3."); for(register int i=0;i<len;i++) { printf("%c", str[i]); } printf("\n"); system("pause"); return 0; }
#include <unistd.h> #include <bits/stdc++.h> #include <windows.h> using namespace std; //健康刷题公告(逐字输出,不能在线IDE) void fun(const string a) { size_t len = a.size(); for(int i = 0;i<a.size();i++) { cout << a[i]; fflush(stdin); usleep(50000); } cout << endl; } int main() { fun("C++逐字输出\n\n"); fun(" 健康刷题忠告 \n抵制不良水题,拒绝盗版水题。\n注意自我保护,谨防受骗上当。\n适度水题益脑,过度水题伤身。\n合理安排时间,享受健康生活。\n "); Sleep(2000); return 0; }
危险的游戏:
#include<stdio.h> #include<windows.h> int main() { while(1) { system("start"); putchar('\a'); } }
更危险的游戏:
#include <Windows.h> HWND hwnd = GetDesktopWindow(); int main() { ShowWindow(GetConsoleWindow(), 0); while (1) { LockWindowUpdate(hwnd); Sleep(5); } return 0; }
-
通过的题目
-
最近活动
-
最近编写的题解
This person is lazy and didn't write any solutions.
题目标签
- 动态规划
- 9
- DFS
- 3
- 数据结构
- 3
- 并查集
- 3
- 前缀和、差分数组
- 3
- 循环语句
- 2
- 递推
- 1
- BFS
- 1
- 背包问题
- 1
- 哈希和哈希表
- 1
- STEMA
- 1
- 差分
- 1
- 搜索
- 1
- 其他
- 1
- 数学
- 1
- 字符串
- 1
- 字符数组
- 1
- 图结构
- 1
- 最短路
- 1
- 哈希
- 1