第一次刷题笔记如果对数组进 行 sort排序: sort(a, a + n, cmp1);如果对vector v或者字符串 v进 行 sort排序: sort(v.begin(), v.end(), cmp1);辗转相除法求最 大公约数:1 int gcd(int a, int b) { 2 return b == 0 ? a : gcd(b, a % b); 3 }#define max(a
原创 2023-06-16 18:15:48
100阅读
threshold下限,开端,起征点M by N matrix  M行N列矩阵decimal system 十进制    1 decimal place 保留小数点后一位radix 基数,进制,根  fewest intersections最少的结点factorization因式分解row 排 &n
原创 2022-07-14 10:25:45
24阅读
Problem Description:To store English words, one e words share the same sublist if they share the sam...
原创 2023-06-28 15:36:33
36阅读
1099. Build A Binary Search Tree (30) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue A Binary Search Tree (BST) is r
原创 2022-08-30 10:28:10
77阅读
1053. Path of Equal Weight (30) 时间限制 10 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Given a non-empty tree with root R, an
原创 2022-08-30 10:28:14
27阅读
1032. Sharing (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo store English words, one method is to use linke
原创 2022-08-30 10:28:24
17阅读
1075. PAT Judge (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe ranklist of PAT is generated from the status
原创 2022-08-30 10:28:43
63阅读
1020. Tree Traversals (25) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Suppose that all the keys in a binary tree
原创 2022-08-30 09:57:05
28阅读
1103. Integer Factorization (30) 时间限制 1200 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue The K-P factorization of a positive
原创 2022-08-30 09:57:23
55阅读
1052. Linked List Sorting (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题
原创 2022-08-30 09:57:49
39阅读
1056. Mice and Rice (25)时间限制30 ms内存限制65536 kB代码长度限制1600
原创 2022-08-30 09:57:57
43阅读
1060. Are They Equal (25)时间限制50 ms内存限制65536 kB代码长度限制16000 B
原创 2022-08-30 09:58:48
48阅读
1113. Integer Set Partition (25)时间限制150 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a set of N (> 1) positive inte
原创 2022-08-30 10:02:03
51阅读
1012. The Best Rank (25)时间限制400 ms内存限制65536 kB代码长度限制16000
原创 2022-08-30 10:04:58
49阅读
1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制1600
原创 2022-08-30 10:06:38
41阅读
1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判
原创 2022-08-30 10:06:44
26阅读
1014. Waiting in Line (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B
原创 2022-08-30 10:09:38
46阅读
1101. Quick Sort (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CAO, PengThere is a classical process named partition in
原创 2022-08-30 10:09:44
41阅读
1068. Find More Coins (30)时间限制150 ms内存限制65536 kB代码长度限制
原创 2022-08-30 10:09:52
30阅读
1105. Spiral Matrix (25)时间限制150 ms内存限制65536 kB代码长度限制1600
原创 2022-08-30 10:10:15
42阅读
  • 1
  • 2
  • 3
  • 4
  • 5