升级了代码模板和DEV-C++编译器,学会了如何新建本地磁盘(硬盘驱动器)
新代码模板
#include<bits/stdc++.h>
#pragma GCC optimize(3,"Ofast","inline")
#define int long long
using namespace std;
signed main(){
ios::sync_with_stdio(0);
cin.tie(0);
return 0;
}DEV-C++设置
工具-编译选项-编译器,勾选“编译时加入以下命令”,写入:
-std=gnu++14 -O2 -Wl,--stack=102400000点击“确定”即可。
新建本地磁盘
- 按win+r
- 输入
compmgmt.msc- 等一会
- 存储-磁盘管理
- 等一会
- 选一个可用空间比较多的磁盘,右击它
- 选择“压缩卷”
- 输入压缩空间量(MB),输入在“输入压缩空间量”文本框中
- 点“压缩”
- 右击腾出的可用空间
- 选择“新建简单卷”
- 持续点击下一步
- 好了
学会了当学校的电脑上的洛谷被阻止时如何打开和高级一点地清理C盘
打开洛谷
- 按win
- 点“所有程序”
- 点“附件”
- 点“系统工具”
- 点“资源监视器”
- 右击“MasterHelper.exe”
- 点“结束进程”
- 按win+r
- 输入
cmd- 输入
SC stop tdnetfilter- 好了
清理C盘
- 按win+r
- 输入
%temp%- 把里面的东西全部删除
- 等一会
- 若弹出“文件正在使用”错误框,勾选下面的“为所有当前项执行此操作”,然后点击跳过。
- 又按win+r
- 输入
cleanmgr- 选择C盘
- 点“确定”
- 等一会
- 勾选全部
- 按“确定”
- 按“删除文件”
- 等一会
- 窗口消失就表示好了
找到了许多OJ
POJ http://poj.org/
ZOJ https://pintia.cn/problem-sets/91827364500
SGU https://codeforces.com/problemsets/acmsguru
URAL http://acm.timus.ru/
HDU http://acm.hdu.edu.cn/
UVA https://onlinejudge.org/
CodeForces http://codeforces.com/
Aizu http://judge.u-aizu.ac.jp/
LightOJ http://lightoj.com/
UESTC https://cdoj.site/d/lutece/
NBUT https://ac.2333.moe/
CodeChef http://www.codechef.com/
OpenJudge http://openjudge.cn/
Kattis https://open.kattis.com/
AtCoder https://atcoder.jp/
HackerRank https://www.hackerrank.com/
51Nod https://www.51nod.com/
EOlymp https://eolymp.com/en
计蒜客 https://nanti.jisuanke.com/
LibreOJ https://loj.ac/
UniversalOJ https://uoj.ac/
CSG https://cpc.csgrandeur.cn/
DMOJ https://dmoj.ca/
Toph https://toph.co/
洛谷 https://www.luogu.com.cn/
QOJ http://qoj.ac/
USACO http://www.usaco.org/index.php
oj.uz https://oj.uz/
Yosupo https://judge.yosupo.jp/
yukicoder https://yukicoder.me/
VNOJ https://oj.vnoi.info/
Kilonova https://kilonova.ro/
Szkopuł https://szkopul.edu.pl/
CSAcademy https://csacademy.com/
牛客 https://ac.nowcoder.com/
KRSU https://olymp.krsu.kg/onlinejudge#
代码源 https://bs.daimayuan.top/
ACMP https://acmp.ru/
发现了__int128并更新了代码模板,玩OI教练模拟器时出了AKIOI。
__int128
__int128 是 GCC 与 Clang 编译器提供的非标准 位整数扩展,能够存储约 的数值,有效解决 long long()溢出问题,在算法竞赛中常用于大整数乘法取模或高精度中间结果存储;但标准输入输出流(cin/cout/printf)均不支持其原生读写,必须手写快读快写函数处理,且 MSVC 编译器无法使用该类型,需注意环境限制。
新代码模板
#include<bits/stdc++.h>
#define int __int128
using namespace std;
int read(){
int x=0;
bool b=0;
char c=getchar();
while(c<'0'||c>'9'){
if(c=='-')b=1;
c=getchar();
}
while(c>='0'&&c<='9'){
x=x*10+c-'0';
c=getchar();
}
return b?-x:x;
}
void write(int x){
if(x<0)putchar('-'),x=-x;
if(x>9)write(x/10);
putchar(x%10+'0');
}
signed main(){
return 0;
}注:开全局变量数组,最大大小 (内存限制: ),开在main()内部,最大大小 (栈空间: )
AKIOI
发现了Minecraft Wiki和HMCL启动器。
Minecraft Wiki
HMCL启动器
发现了GCC最新版的下载链接。