随笔分类 -  思维

摘要:原题链接:Problem - B - Codeforces 题目大意:输入一个数n,给出n首歌曲评分的排列。给出一个长度为n且只为1或0的字符串s,每一个0或1对应一首歌曲的评价。要求根据s对歌曲重新评分并重新输出排列。重新评分的要求为:1.重新评分后得到的也需要是一个排列。2.评价为1的歌曲评分一 阅读全文
posted @ 2021-12-28 14:07 wbw1537 阅读(238) 评论(0) 推荐(0)
摘要:B. Team Composition: Programmers and Mathematicians 题目链接:Problem - B - Codeforces time limit per test 1 second memory limit per test 256 megabytes inp 阅读全文
posted @ 2021-11-26 10:21 wbw1537 阅读(325) 评论(0) 推荐(0)
摘要:B. Special Permutation time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output A permutation of 阅读全文
posted @ 2021-11-24 20:40 wbw1537 阅读(176) 评论(0) 推荐(0)