Description Given n books and the i-th book has pages[i] pages. There are k persons to copy these books. These books list in a row and each person can ...
分类:
其他好文 时间:
2019-12-21 20:19:45
阅读次数:
111
Description Given an expression s contains numbers, letters and brackets. Number represents the number of repetitions inside the brackets(can be a str ...
分类:
其他好文 时间:
2019-12-21 15:21:13
阅读次数:
81
原题链接在这里:https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/ 题目: Given an array nums sorted in non-decreasing order, ...
分类:
其他好文 时间:
2019-12-21 12:11:48
阅读次数:
73
Description Given a list of Connections, which is the Connection class (the city name at both ends of the edge and a cost between them), find edges th ...
分类:
其他好文 时间:
2019-12-21 12:00:30
阅读次数:
76
链接: https://codeforces.com/contest/1278/problem/B 题意: You are given two integers a and b. You can perform a sequence of operations: during the first o ...
分类:
其他好文 时间:
2019-12-21 11:44:51
阅读次数:
107
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the bi ...
分类:
其他好文 时间:
2019-12-21 09:41:37
阅读次数:
92
time limit per test3 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard output You are given a non-empty string s=s1s2…sn, ...
分类:
其他好文 时间:
2019-12-20 23:54:14
阅读次数:
181
time limit per test3 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard output There are n positive integers a1,a2,…,an. F ...
分类:
其他好文 时间:
2019-12-20 23:52:25
阅读次数:
105
mysql_connect()这个函数不再使用 不要修改php.ini文件,改成mysqli_connect()就可以了 全局替换后 报错:Warning: mysqli_error() expects exactly 1 parameter, 0 given in $con = mysqli_co ...
分类:
数据库 时间:
2019-12-20 11:55:08
阅读次数:
102
Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu ...
分类:
其他好文 时间:
2019-12-19 16:08:27
阅读次数:
76