摘要: 题目背景 海上漫游的日子是平淡的,所以万叶喜欢思考问题。 北斗总是喜欢提问万叶问题,但是万叶非常聪明,所以他想让你来回答北斗船长的问题。 题目描述 万叶进行了如下定义: 对于一个排列 p,找到其最小的一个 i,满足 p 包含有长度为 1 到 i 的排列区间(详见提示说明),且不包含长度为 i+1 的 阅读全文
posted @ 2025-10-05 19:27 bz02_2023f2 阅读(1) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MiB Score : 100 points  Problem Statement The versions of a certain OS in chronological order are "Ocelot", 阅读全文
posted @ 2025-10-04 21:57 bz02_2023f2 阅读(2) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MiB Score : 200 points  Problem Statement You are given a string S of length at least 3 consisting of lowerc 阅读全文
posted @ 2025-10-04 21:56 bz02_2023f2 阅读(1) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MiB Score : 300 points  Problem Statement There are N versions of a certain OS, numbered 1,2,…,N in chronolo 阅读全文
posted @ 2025-10-04 21:54 bz02_2023f2 阅读(2) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MiB Score : 400 points  Problem Statement You are given a string S of length N consisting of 0 and 1. You ca 阅读全文
posted @ 2025-10-04 21:52 bz02_2023f2 阅读(2) 评论(0) 推荐(0)
摘要: Time Limit: 3 sec / Memory Limit: 1024 MiB Score : 450 points  Problem Statement Takahashi and Aoki walk on a two-dimensional plane. Takahashi's st 阅读全文
posted @ 2025-10-04 21:49 bz02_2023f2 阅读(2) 评论(0) 推荐(0)
摘要: Time Limit: 5 sec / Memory Limit: 1024 MiB Score : 525 points  Problem Statement AtCoder Inc.'s online shop currently handles N products, and the s 阅读全文
posted @ 2025-10-04 21:46 bz02_2023f2 阅读(2) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MiB Score : 450 points  Problem Statement There are N points on a two-dimensional plane. N is odd. The i-th 阅读全文
posted @ 2025-10-04 19:50 bz02_2023f2 阅读(2) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MiB Score : 400 points  Problem Statement Let N be a positive integer. Define the imbalance of a sequence A= 阅读全文
posted @ 2025-10-04 19:30 bz02_2023f2 阅读(2) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MiB Score : 300 points  Problem Statement Takahashi has some letters. Each letter he has is A, B, or C. Init 阅读全文
posted @ 2025-10-04 19:27 bz02_2023f2 阅读(1) 评论(0) 推荐(0)