Loading

摘要: 题目描述 在MarsMar**s星球上,每个MarsMar**s人都随身佩带着一串能量项链。在项链上有NN颗能量珠。能量珠是一颗有头标记与尾标记的珠子,这些标记对应着某个正整数。并且,对于相邻的两颗珠子,前一颗珠子的尾标记一定等于后一颗珠子的头标记。因为只有这样,通过吸盘(吸盘是MarsMar**s 阅读全文
posted @ 2021-04-14 16:04 脂环 阅读(136) 评论(0) 推荐(0) 编辑
摘要: You are given three integers a, 𝑏b and c. Find two positive integers x and y (x>0, y>0) such that: the decimal representation of x without leading ze 阅读全文
posted @ 2021-04-14 14:27 脂环 阅读(131) 评论(0) 推荐(0) 编辑
摘要: You have a card deck of n cards, numbered from top to bottom, i. e. the top card has index 1and bottom card — index n. Each card has its color: the 𝑖 阅读全文
posted @ 2021-04-14 13:24 脂环 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Let's define the cost of a string 𝑠s as the number of index pairs i and j (1≤i<j<|s|) such that si=sj and si+1=sj+1. You are given two positive integ 阅读全文
posted @ 2021-04-14 09:18 脂环 阅读(94) 评论(0) 推荐(0) 编辑