- 博客(7)
- 收藏
- 关注
原创 Origami
链接:https://ac.nowcoder.com/acm/contest/296/B来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述Chiaki has a very big sheet of paper. This sheet has a form of r...
2018-12-01 19:47:00
256
原创 Creating the Contest
You are given a problemset consisting of nn problems. The difficulty of the ii-th problem is aiai. It is guaranteed that all difficulties are distinct and are given in the increasing order.You have ...
2018-08-25 10:24:24
279
原创 优先队列,set,打表
问题 G: 我数23时间限制: 1 Sec 内存限制: 128 MB提交: 125 解决: 13[提交][状态][讨论版][命题人: 外部导入]题目描述给你一个数字n,找出大于等于n的最小的,质因数只有2,3,5,7的数。输入第一行输入一个数字T,表示有T组测试数据,1 <= T <= 500000之后T行,每一行有一个数字n,0 <= n <...
2018-08-20 08:49:40
214
原创 二叉树——知道先序遍历和中序遍历求后序遍历
#include<cstdio>#include<cstring> char a[1000],b[1000];int n,s=1; struct node{ int l,r;}t[260]; void dfs(int q,int w,int o)//q,w为查找范围,o为父亲{ if(s==n+1) return; for(i...
2018-08-12 11:06:24
274
原创 全排列模板(利用c++函数)
next_permutation,别忘记加头文件(#include<algorithm> ),还有sort排序(不然有个别数据无法输出)。#include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int main() { cha...
2018-08-05 14:03:31
679
原创 UVa 10835,THrowing cards away I,卡牌游戏
原题Throwing cards away I Given is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The following operation is performed as long as there are at least tw...
2018-07-25 14:24:05
159
原创 A - Task Scheduling Problem
Time limit : 2sec / Memory limit : 1024MBScore : 100 pointsProblem StatementYou have three tasks, all of which need to be completed.First, you can complete any one task at cost 0.Then, just ...
2018-07-22 10:25:53
572
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人