
洛谷
洛谷题单整理
Mo*◑
这个作者很懒,什么都没留下…
展开
-
洛谷题单 103【入门4】数组
P1047 校门外的树500 3150 300100 200470 471待续…原创 2020-10-09 00:08:42 · 475 阅读 · 0 评论 -
洛谷题单 102【入门3】循环结构
P1009 阶乘之和#include <iostream>using namespace std;int a[2000];int b[2000];int c[2000];int sum[2000];void pplus(int *a, int *c){ int jw = 0; for (int i = 1; i <= 1000; i++) { c[i] += a[i] + jw; jw = c[i] / 10;原创 2020-09-29 18:21:17 · 632 阅读 · 0 评论 -
洛谷题单 101【入门2】分支结构
P1046 陶陶摘苹果100 200 150 140 129 134 167 198 200 111110#include <iostream>using namespace std;int main(){ int a[10], count = 0, h; for (int i = 0; i < 10; i++) { cin >> a[i]; } cin >> h; for (int i原创 2020-09-29 18:06:57 · 391 阅读 · 0 评论 -
洛谷题单 100【入门1】顺序结构
P1000 超级玛丽游戏 ******** ************ ####....#. #..###.....##.... ###.......###### ### ### ........... #...# #...#原创 2020-09-28 11:38:40 · 513 阅读 · 0 评论 -
洛谷题库 P1002 过河卒
输入样例:B的坐标和马的坐标,如图显示:dp题目:#include <iostream>#include <cstring>#include <cstdio>#include <algorithm>#define ull unsigned long longusing namespace std;const int fx[] = {0, -2, -1, 1, 2, 2, 1, -1, -2};const int fy[] = {0, 1,.原创 2020-09-28 11:02:29 · 310 阅读 · 0 评论