本文分类:news发布日期:2025/11/23 17:13:29
相关文章
1042. Shuffling Machine (20)
1042. Shuffling Machine (20)#include <iostream>using namespace std;int main()
{int k;scanf("%d", &k);int res[55], index[55], i;for(i = 1; i <= 54; i++){scanf("%d", &…
建站知识
2025/11/23 17:13:28
1049. Counting Ones (30)
1049. Counting Ones (30)#include <iostream>using namespace std;int main()
{int n;scanf("%d", &n);int low, mid, high, d = 1, res = 0;while(n >= d){high = n / (d * 10);mid = (n - h…
建站知识
2025/11/23 17:12:40
1045. Favorite Color Stripe (30)
1045. Favorite Color Stripe (30)#include <iostream>using namespace std;int fav[210], ori[10010], res[210][10010];int getmax(int a, int b)
{if(a > b){return a;}else{return b;}
}int main()
{int …
建站知识
2025/11/23 17:11:36
1048. Find Coins (25)
1048. Find Coins (25)#include <iostream>
#include <algorithm>using namespace std;int c[510], num[100010];int main()
{int n, m;scanf("%d%d", &n, &m);int i;for(i = 1; i <…
建站知识
2025/11/23 17:11:33
1052. Linked List Sorting (25)
1052. Linked List Sorting (25)#include <iostream>
#include <algorithm>
#include <vector>using namespace std;struct node
{int address, key, next;
}nod[100000];int cmp(node n1, node n2)…
建站知识
2025/11/23 17:10:39
1051. Pop Sequence (25)
1051. Pop Sequence (25)#include <iostream>
#include <stack>using namespace std;int main()
{int m, n, k;scanf("%d%d%d", &m, &n, &k);int i, num[1010], j, index, flag, be…
建站知识
2025/11/23 17:10:30
卡塔兰long long
1.mod 我们用递推式用加法避免除和mod
include <bits/stdc++.h>
using namespace std;
long long dp[105];
long long f(int x)
{
if(dp[x]!=-1) return dp[x];
dp[x]=0;//归0
for(int i=0;i<x;i++)
{
dp[x]=…
建站知识
2025/11/23 17:07:34
1038. Recover the Smallest Number (30)
1038. Recover the Smallest Number (30)#include <iostream>
#include <string.h>
#include <string>
#include <algorithm>
#include <vector>using namespace std;int cmp(string a,…
建站知识
2025/11/23 17:07:26

