June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 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