
POJ
POJ
爱吃胡萝卜的代码兔
知行合一,天道酬勤
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ_Prob.ID:3255
POJ 3255 #include <iostream> #include <string.h> #include <algorithm> #include <stdio.h> #include <stdlib.h> #include <vector> #include <queue> #include <a...原创 2020-03-24 00:02:16 · 160 阅读 · 0 评论 -
POJ_Prob.ID:1182
#include<cstdio> const int maxn = 50000+10; int p[maxn]; //存父节点 int r[maxn];//存与父节点的关系 0 同一类,1被父节点吃,2吃父节点 void set(int n) //初始化 { for(int x = 1; x <= n; x++) { p[x] = x; //开始自...原创 2020-03-24 00:01:07 · 153 阅读 · 0 评论 -
POJ_Prob.ID:2431
POJ:2431 P76 #include <stdio.h> #include<cstring> #include<algorithm> #include<queue> using namespace std; const int N=10000005; int main() { int L,P,N; int A[N]...原创 2020-03-23 23:59:45 · 424 阅读 · 0 评论 -
POJ_Prob.ID:2386 Lake Counting
Lake Counting Time Limit: 1000MS Memory Limit: 65536K Description Due to recent rains, water has pooled in various places in Farmer John’s field, which is represented by a rectangle of N...原创 2020-02-12 20:28:23 · 129 阅读 · 0 评论 -
POJ_Prob.ID:3069 Saruman's Army
A+B Problem Time Limit: 1000MS Memory Limit: 65536K Description Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman di...原创 2020-02-12 20:25:36 · 159 阅读 · 0 评论 -
POJ_Prob.ID:1000 A+B Problem
A+B Problem **Time Limit:** 1000MS **Memory Limit:** 10000K **Total Submissions:** 498343 **Accepted:** 281415 Description Calculate a+b Input Two integer a,b (0<=a,b<=10) Output Output a+b Sa...原创 2020-02-12 20:16:03 · 196 阅读 · 0 评论