Kod:
// Autor: kokosoko
#include<stdio.h>
int main(void)
{
char a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,ab,cd,ef,gh,ij,kl,mn,op,qr,st;
int a2,b2,c2,d2,e2,f2,g2,h2,i2,j2,k2,l2,m2,n2,o2,p2,q2,r2,s2,t2;
while(scanf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l,&m,&n,&o,&p,&q,&r,&s,&t)
!=EOF)
{
if(a=='A')
a2=0;
else if(a=='B')
a2=1;
else if(a=='C')
a2=2;
else if(a=='D')
a2=3;
else if(a=='E')
a2=4;
else if(a=='F')
a2=5;
else if(a=='G')
a2=6;
else if(a=='H')
a2=7;
else if(a=='I')
a2=8;
else if(a=='J')
a2=9;
else if(a=='K')
a2=10;
else if(a=='L')
a2=11;
else if(a=='M')
a2=12;
else if(a=='N')
a2=13;
else if(a=='O')
a2=14;
else if(a=='P')
a2=15;
if(c=='A')
c2=0;
else if(c=='B')
c2=1;
else if(c=='C')
c2=2;
else if(c=='D')
c2=3;
else if(c=='E')
c2=4;
else if(c=='F')
c2=5;
else if(c=='G')
c2=6;
else if(c=='H')
c2=7;
else if(c=='I')
c2=8;
else if(c=='J')
c2=9;
else if(c=='K')
c2=10;
else if(c=='L')
c2=11;
else if(c=='M')
c2=12;
else if(c=='N')
c2=13;
else if(c=='O')
c2=14;
else if(c=='P')
c2=15;
.................
if(r=='A')
r2=0;
else if(r=='B')
r2=16;
else if(r=='C')
r2=32;
else if(r=='D')
r2=48;
else if(r=='E')
r2=64;
else if(r=='F')
r2=80;
else if(r=='G')
r2=96;
else if(r=='H')
r2=112;
else if(r=='I')
r2=128;
else if(r=='J')
r2=144;
else if(r=='K')
r2=160;
else if(r=='L')
r2=176;
else if(r=='M')
r2=192;
else if(r=='N')
r2=208;
else if(r=='O')
r2=224;
else if(r=='P')
r2=240;
if(t=='A')
t2=0;
else if(t=='B')
t2=16;
else if(t=='C')
t2=32;
else if(t=='D')
t2=48;
else if(t=='E')
t2=64;
else if(t=='F')
t2=80;
else if(t=='G')
t2=96;
else if(t=='H')
t2=112;
else if(t=='I')
t2=128;
else if(t=='J')
t2=144;
else if(t=='K')
t2=160;
else if(t=='L')
t2=176;
else if(t=='M')
t2=192;
else if(t=='N')
t2=208;
else if(t=='O')
t2=224;
else if(t=='P')
t2=240;
ab = putchar(a2+b2);
cd = putchar(c2+d2);
ef = putchar(e2+f2);
gh = putchar(g2+h2);
ij = putchar(i2+j2);
kl = putchar(k2+l2);
mn = putchar(m2+n2);
op = putchar(o2+p2);
qr = putchar(q2+r2);
st = putchar(s2+t2);
printf("\n");
}
return 0;
}
[Edit]