I got it AC PE (the PE still bothers me), I just missed one thing in the subject (multiple test cases, shame on me)
![:oops:](./images/smilies/icon_redface.gif)
![:oops:](./images/smilies/icon_redface.gif)
But I still don't understand the PE
Moderator: Board moderators
Code: Select all
the income of the farmers
are a book with seven seals to the delegates
to remedy this
all subsidy laws should be urgently improved
#
the taxation on property and income
should in opinion of the delegates
be seriously raised
in addion to that the controlling powers of the fiscal authorities
should be urgently improved
#
Code: Select all
the income of the delegates to should be urgently improved
the output from the program is :chashi der ay
jono-protinidhi der kachhe shat mohor bishishto pustok shorup
er protikarer jonno
shokol vortuki aain otishottor porimarjon korte hobe
#
ay ebong shompottir upor aropkrito kor
jono-protinidhider motanushare
gurutto shohokare briddhi korte hobe
er pashapashi ortho bebosthar kortripokkher niontron khomota
otishottor porimarjon korte hobe
#
meaning of this line is :ay er otishottor porimarjon korte hobe
However, the Bangla translation of the output line you posted here earlier is :income should be inmproved urgently
This is a real life example of data loss in translation.jono-protinidhi der ay er otishttor porimarjon korte hobe
And there is a yellow flag before this problem, that is , they use special judger to judge the output. So I think it's ok for me to use any method to find LCS string.If there is more than one such sequence, any one is acceptable.
Code: Select all
die einkommen der landwirte
sind fuer die abgeordneten wie ein buch mit sieben siegeln
um dem abzuhelfen
muessen dringend alle subventionsgesetze verbessert werden
#
die steuern auf vermoegen und einkommen
sollten nach meinung der abgeordneten
nachdruecklich erhoben werden
dazu muessen die kontrollbefugnisse der finanzbehoerden
dringend verbessert werden
#
men like cars and women
#
men like women and cars
#
a b c d e f g h i j k l m n o p q r s t u v w x y z
#
z y x w v u t s r q p o n m l k j i h g f e d c b a
#
a b c
#
c b a
#
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
#
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
#
Code: Select all
die einkommen der abgeordneten muessen dringend verbessert werden
men like cars
a
a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
Code: Select all
for( i = Num - 1 ; i > 0 ; i -- )
printf("%s ",ArrayOne[IndexReminder[i]]);
if(Num!=0)
printf("%s\n",ArrayOne[IndexReminder[0]]);
Code: Select all
while(scanf("%s",StringBuffer)!=EOF){
i = 0 ;
if(StringBuffer[0]!='#') {
Add(StringBuffer,&ArrayOne[i++]);
while(scanf("%s",StringBuffer)!=EOF&&StringBuffer[0]!='#')
Add(StringBuffer,&ArrayOne[i++]);
Lone = i ;
}
i = 0 ;
while(scanf("%s",StringBuffer)!=EOF&&StringBuffer[0]!='#')
Add(StringBuffer,&ArrayTwo[i++]);
Ltwo = i ;
....
Code: Select all
var
s: string;
...
if (s[i] in ['a'..'z']) then
...
Code: Select all
var
s: string;
...
if (s[i] <> ' ') then
...