03 2021 档案
摘要:library(lubridate) d1 <- Sys.Date() as.numeric(d1) d2 <- "2000-02-29" d3 <- as.Date(d2) d4 <- now() year(d4) month(d4) week(d4) s1 <- sample(LETTERS[1
阅读全文
摘要:E. Accidental Victory time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A championship is
阅读全文
摘要:D. Permutation Transformation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A permutat
阅读全文
摘要:C. Sum of Cubes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a positive
阅读全文
摘要:D. Number into Sequence time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output You are given an
阅读全文
摘要:C. Sequence Transformation time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given
阅读全文
摘要:题目背景 这是一道ST表经典题——静态区间最大值 请注意最大数据时限只有0.8s,数据强度不低,请务必保证你的每次查询复杂度为 O(1)O(1)。若使用更高时间复杂度算法不保证能通过。 如果您认为您的代码时间复杂度正确但是 TLE,可以尝试使用快速读入: inline int read() { in
阅读全文
摘要:F. Array Partition time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given an arra
阅读全文
摘要:题目背景 模板题,无背景。 2019.12.12 更新数据,放宽时限,现在不再卡常了。 题目描述 给出项数为 nn 的整数数列 a_{1 \dots n}a1…n。 定义函数 f(i)f(i) 代表数列中第 ii 个元素之后第一个大于 a_iai 的元素的下标,即 f(i)=\min_{i<j\
阅读全文
摘要:A. Special Permutation time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given one
阅读全文
摘要:C. 1D Sokoban time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are playing a game sim
阅读全文
摘要:C. Fox And Names time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Fox Ciel is going to pu
阅读全文
摘要:B. Sum of Medians time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A median of an array of
阅读全文
摘要:题目描述 给定一个数列,初始为空,请支持下面三种操作: 给定一个整数 xx,请将 xx 加入到数列中。 输出数列中最小的数。 删除数列中最小的数(如果有多个数最小,只删除 11 个)。 输入格式 第一行是一个整数,表示操作的次数 nn。接下来 nn 行,每行表示一次操作。每行首先有一个整数 opop
阅读全文
摘要:B. Balanced Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a positiv
阅读全文
摘要:迷宫问题 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 57486 Accepted: 30481 Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0,
阅读全文
摘要:Catch That Cow Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 33021 Accepted Submission(s): 8956
阅读全文
摘要:A. Distance and Axis time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output We have a point AA w
阅读全文
摘要:B. Construct the String time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given th
阅读全文

浙公网安备 33010602011771号