本文分类:news发布日期:2025/11/23 17:17:57
相关文章
1070. Mooncake (25)
1070. Mooncake (25)#include <iostream>
#include <algorithm>using namespace std;struct node
{double amounts, prices, perprice;
}mooncakes[1010];int cmp(node n1, node n2)
{return n1.perprice …
建站知识
2025/11/23 17:17:48
1069. The Black Hole of Numbers (20)
1069. The Black Hole of Numbers (20)#include <iostream>
#include <string.h>
#include <algorithm>using namespace std;int cmp(char a, char b)
{return a > b;
}int main()
{int num[2];s…
建站知识
2025/11/23 17:17:07
1050. String Subtraction (20)
1050. String Subtraction (20)#include <iostream>
#include <string.h>using namespace std;int flag[130];
char s[2][10010];int main()
{int i, len[2];for(i = 0; i <= 1; i++){gets(s[i]);len[i…
建站知识
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

