Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Letter-frequency/Aime/letter-frequency-1.aime
Normal file
15
Task/Letter-frequency/Aime/letter-frequency-1.aime
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
file f;
|
||||
index x;
|
||||
integer c;
|
||||
|
||||
f.affix("unixdict.txt");
|
||||
|
||||
while ((c = f.pick) ^ -1) {
|
||||
x[c] += 1;
|
||||
}
|
||||
|
||||
c = 'A';
|
||||
while (c <= 'Z') {
|
||||
o_form("%c: /w5/\n", c, x[c] += x[c + 'a' - 'A'] += 0);
|
||||
c += 1;
|
||||
}
|
||||
13
Task/Letter-frequency/Aime/letter-frequency-2.aime
Normal file
13
Task/Letter-frequency/Aime/letter-frequency-2.aime
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
file f;
|
||||
index x;
|
||||
integer c, n;
|
||||
|
||||
f.affix("unixdict.txt");
|
||||
|
||||
while ((c = f.pick) ^ -1) {
|
||||
x[c] += 1;
|
||||
}
|
||||
|
||||
for (c, n in x) {
|
||||
o_form("%c: /w5/\n", c, n);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue