摘要:
前言 因为浙江省省赛题目不开放了,所以我们暂时在这里做:https://qoj.ac/category/250 The 2025 ICPC China Zhejiang Province Programming Contest (22nd) https://qoj.ac/contest/2021 T 阅读全文
摘要:
第32页 Sequence in the Pocket 思维题 给定一个序列,每次可以将一个元素移到最前面,问你最少使用多少次,将元素排成上升序列。 解题思路:其实可以先创建一个新数组进行排序,排序后的数组和原先数组从后往前有多少个不一样的元素就是移动的次数 T = int(input()) for 阅读全文