格式化字符串(三) 直接使用字符串“.”方法的方式格式化字符串。 字符串增加 方法,使用判断的方式格式化字符串。 String.judge({JSON},|Boolean|?) 1. 入门用法。 例如: 说明: 用法 [^1]的方式嵌入字符串中。 2. 初级用法。 例如: 说明: 用法 [^2]的方 ...
分类:
其他好文 时间:
2018-12-01 18:24:13
阅读次数:
142
Pots Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7783 Accepted: 3261 Special Judge Description You are given two pots, having the volum ...
分类:
其他好文 时间:
2018-12-01 12:59:01
阅读次数:
179
传送门:http://poj.org/problem?id=3565 Ants Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 7650 Accepted: 2424 Special Judge Description Young ...
分类:
其他好文 时间:
2018-11-24 14:18:22
阅读次数:
150
题意:有n个人在一条直线上,在这条直线上有k把钥匙(n<=k),有一个门,要求每个人都携带一把钥匙来开这张门!求他们需要的最短时间! 我这次感觉虽然看懂了题,但是我第二次想的时候就跑题了啊,这道题可以说是二分中的经典,最大值最小化,也就是开要使得开这张门最长的那个时间最短,但是我二分不会写judge ...
分类:
其他好文 时间:
2018-11-14 01:05:51
阅读次数:
161
二分答案本质已经出来了 就是每次根据m次比较,找最值(只要有m次操作,有序单调基本都可用) 最小最大和最大最小略有不同(走的方向更新解的方向刚好相反,理解了本质都一样) 关键和难点还是写judge函数怎么找到每次枚举答案的次数,怎么找到写出m次。 ...
分类:
其他好文 时间:
2018-11-09 23:27:23
阅读次数:
310
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
分类:
编程语言 时间:
2018-11-04 11:17:43
阅读次数:
165
1.项目描述(Project Description) 本项目基于Online Judge平台系统,Online Judge系统(简称OJ)是一个ACM在线判题系统,用户可以在线提交多种程序(如C、C++和JAVA等)源代码,系统对源代码进行编译和执行,并通过预先设计的测试用例来检验程序源代码的正误 ...
分类:
其他好文 时间:
2018-10-27 14:54:01
阅读次数:
172
```c++ / argv[1]:输入文件 argv[2]:选手输出文件 argv[3]:标准输出文件 argv[4]:单个测试点分值 argv[5]:输出最终得分的文件 argv[6]:输出错误报告的文件 / include int n,k,a[100100]; using namespace s ...
分类:
其他好文 时间:
2018-10-27 00:07:21
阅读次数:
295
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
Genealogical tree Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8003 Accepted: 5184 Special Judge Description The system of Martians' blo ...
分类:
编程语言 时间:
2018-10-22 16:44:54
阅读次数:
167