logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

洛谷P1540 [NOIP2010 提高组] 机器翻译(队列)

#include<iostream>using namespace std;int m[1001], first, last, M, N, num;int main() {cin >> M >> N;for (int i = 0; i < N; i++) {int w, j;cin >> w;for (j = first; j < las

#机器翻译#c++
洛谷P1540 [NOIP2010 提高组] 机器翻译(队列)

#include<iostream>using namespace std;int m[1001], first, last, M, N, num;int main() {cin >> M >> N;for (int i = 0; i < N; i++) {int w, j;cin >> w;for (j = first; j < las

#机器翻译#c++
洛谷P1036 [NOIP2002 普及组] 选数进阶解法

#include<iostream>#include<cmath>using namespace std;int n, k, x[21], num;bool prime(int n){if (2 == n)return true;else if (0 == n % 2)return false;elsefor (int i = 3; i <= sqrt(n); i +

洛谷P1106 删数问题进阶解法

#include<iostream>#include<string>using namespace std;int k;string s;int main(){cin >> s >> k;for (int i = 0; i < k; i++){int l = s.length();for (int j = 0; j < l - 1; j+

洛谷P4995 跳跳!进阶解法

#include<iostream>#include<algorithm>using namespace std;constexpr int MAX_LENGTH = 300;int n, h[MAX_LENGTH], g[MAX_LENGTH + 10];long long sum;int main(){cin >> n;for (int i = 0; i &

洛谷P2525 Uim的情人节礼物·其之壱进阶解法

#include<iostream>#include<algorithm>using namespace std;int n;int num[10] = { 1,2,3,4,5,6,7,8,9 }, temp[10];bool str_equal(){for (int i = 0; i < n; i++)if (num[i] != temp[i])return fal

洛谷P1028 [NOIP2001 普及组] 数的计算进阶解法

#include<iostream>using namespace std;unsigned long long a[1000];int N;void find(){for (int j = 0; j <= N; j++){unsigned long long sum = 0;if (j == 1 || j == 0)sum = 1;elsefor (int i = 0; i &

到底了