”zoj“ 的搜索结果

     题目链接:https://zoj.pintia.cn/problem-sets/91827364500/problems/91827370521 用类似数位dp的思想去枚举每个状态,记录每个数字的出现次数,当后面的数组可以任意填时,就枚举答案,枚举每个数字的在后面的...

     作为一个在CSDN潜水了一年多的小白,在之前白嫖了许多大佬们的优秀作品和思路,看他们的...下面是ZOJ刷题记录(随缘更新) ZOJ|1001:A+B Problems题目代码注意事项 题目 A + B Problem Time Limit: 2000 ms Memory L

     真的是不行了,很长时间没有玩过这玩意儿了,一下子上来,还真是很不习惯。碰了很多壁,终于碰到了这么一道... 下面先给出原题: ZOJ Problem Set - 1045 HangOver Time Limit: 1 Second Memory Limit: 32768 KB Ho...

ZOJ 1229 Gift

标签:   c++  开发语言

     文章来源ZOJ 1229 Gift?!-Cheese的个人博客ZOJ 1229 Gift?!http://blog.cheese.ren/15 欢迎交换友链 :-) ​​​​​​​ #include<iostream> #include<stack> #include<fstream> ...

ZOJ1383 Binary Numbers

标签:   算法  c++

     Binary Numbers 题目传送门~ Time Limit: 2000 msMemory Limit: 65536 KB Given a positive integer n, print out the positions of all 1's in its binary representation.... Example The positions of 1's in the...

     ZOJ - 1654Place the Robots 建图+二分图最大匹配 https://vjudge.net/problem/ZOJ-1654 分析: 每一个空地使得这个位置相邻的空地不能被选择,将空地分为一个一个块,即求最大点独立集,即最大匹配 想了好久没想到...

     Last week, n students participated in the annual programming contest of Marjar University. Students are labeled from 1 to n. They came to the competition area one by one, one after another in the...

ZOJ

      2 读入一个字符串,字符串中包含ZOJ三个字符,个数不一定相等,按ZOJ的顺序输出,当某个字符用完时,剩下的仍然按照ZOJ的顺序输出。 3 Input 4 题目包含多组用例,每组用例占一行,包含ZOJ三个字符,当输入“E...

5   
4  
3  
2  
1