#1032

P1032 字串变换

已知有两个字串A,B及一组字串变换的规则(至多6个规则):A1->B1A2->B2规则的含义为:在A$中的子串A1可以变换为B1、A2可以变换为B2…。例如:A='abcd'B='xyz'变换规则为:‘abc’->‘xu’‘ud’->‘y’‘y’->‘yz’则此时,A可以经过一系列的变换变...
代码星球 代码星球·2020-12-26

1032 Sharing (25分)(数组链表)

TostoreEnglishwords,onemethodistouselinkedlistsandstoreawordletterbyletter.Tosavesomespace,wemayletthewordssharethesamesublistiftheysharethesamesuffix.Forexampl...

1032. Sharing (25)

TostoreEnglishwords,onemethodistouselinkedlistsandstoreawordletterbyletter.Tosavesomespace,wemayletthewordssharethesamesublistiftheysharethesamesuffix.Forexampl...
代码星球 代码星球·2020-04-08

1032. 挖掘机技术哪家强(20)

为了用事实说明挖掘机技术到底哪家强,PAT组织了一场挖掘机技能大赛。现请你根据比赛结果统计出技术最强的那个学校。输入格式:输入在第1行给出不超过105的正整数N,即参赛人数。随后N行,每行给出一位参赛者的信息和成绩,包括其所代表的学校的编号(从1开始连续编号)、及其比赛成绩(百分制),中间以空格分隔。输出格式:在一行中...
首页上一页12下一页尾页