Submission #3276321


Source Code Expand

var
	n,i,j:Longint;
	s:String[50];
	a:array[97..122]of Longint=(99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99);
	b:array[97..122]of Longint;
begin
	readln(n);
	for i:=1 to n do begin
		readln(s);
		for j:=97 to 122 do b[j]:=0;
		for j:=1 to length(s)do inc(b[ord(s[j])]);
		for j:=97 to 122 do if a[j]>b[j]then a[j]:=b[j];
	end;
	for i:=97 to 122 do for j:=1 to a[i]do write(chr(i));
end.

Submission Info

Submission Time
Task C - Dubious Document
User kotatsugame
Language Pascal (FPC 2.6.2)
Score 300
Code Size 436 Byte
Status AC
Exec Time 0 ms
Memory 128 KB

Compile Error

/usr/bin/ld.bfd: warning: ./link.res contains output sections; did you forget -T?

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 10
Set Name Test Cases
Sample 0_000.txt, 0_001.txt
All 0_000.txt, 0_001.txt, dec_half.txt, hand.txt, max.txt, max_10.txt, max_5.txt, maxx.txt, rnd.txt, single.txt
Case Name Status Exec Time Memory
0_000.txt AC 0 ms 128 KB
0_001.txt AC 0 ms 128 KB
dec_half.txt AC 0 ms 128 KB
hand.txt AC 0 ms 128 KB
max.txt AC 0 ms 128 KB
max_10.txt AC 0 ms 128 KB
max_5.txt AC 0 ms 128 KB
maxx.txt AC 0 ms 128 KB
rnd.txt AC 0 ms 128 KB
single.txt AC 0 ms 128 KB