早教吧作业答案频道 -->英语-->
ACM题,第一次做英文的,就遇到困难.helpmeplease~Thisisthefirstproblemfortest.SinceallweknowtheASCIIcode,yourjobissimple:Inputnumbersandoutputcorrespondingmessages.输入Theinputwillcontainalistofpositiveinteger
题目详情
ACM题,第一次做英文的,就遇到困难.help me please~
This is the first problem for test.Since all we know the ASCII code,your job is simple:Input numbers and output corresponding messages.
输入
The input will contain a list of positive integers separated by whitespaces(spaces,newlines,TABs).Please process to the end of file (EOF).The integers will be no less than 32.
输出
Output the corresponding message.Note there is NOT a newline character in the end of output.
样例输入
72 101 108 108 111 44
32 119 111 114 108 100 33
样例输出
Hello,world!
This is the first problem for test.Since all we know the ASCII code,your job is simple:Input numbers and output corresponding messages.
输入
The input will contain a list of positive integers separated by whitespaces(spaces,newlines,TABs).Please process to the end of file (EOF).The integers will be no less than 32.
输出
Output the corresponding message.Note there is NOT a newline character in the end of output.
样例输入
72 101 108 108 111 44
32 119 111 114 108 100 33
样例输出
Hello,world!
▼优质解答
答案和解析
#include
int main()
{
int a;
char ch;
while(scanf("%d",&a)!=EOF)
{
ch=a;
printf("%c",ch);
}
return 0;
}
这道题就是把数字转化为字符输出即可
int main()
{
int a;
char ch;
while(scanf("%d",&a)!=EOF)
{
ch=a;
printf("%c",ch);
}
return 0;
}
这道题就是把数字转化为字符输出即可
看了 ACM题,第一次做英文的,就...的网友还看了以下:
下题词语中,加点字读音全部正确的一组是()A.绥靖(tuǒ)嫣红(yān)淤泥(yū)B.仄歪(z 2020-04-11 …
划线的字,读音全都正确的一组是A.道观(guàn)恬(tián)静问难(nán)B.城垣(yuán 2020-05-09 …
下列加点字的读音与所给读音全相同的一项:()A.和(hé)和睦曲高和寡和衷共济B.处(chǔ)相处 2020-05-14 …
下列各项中注音有误的一项是()A.qìn罄竹难书馨香xīn肯綮qìngB.quǎn缠绵缱绻蜷缩qu 2020-05-17 …
若6的m次方+2的n次方+2(m,n属于N)是一个完全平方数,求所有可能的(m,n).数学难题 2020-05-17 …
下列加点的字注音全对的一项是()A.宰割(zǎi)鞠躬(ɡōnɡ)开拓(shí)奠基(diàn)B. 2020-11-03 …
下列加点的字注音完全正确的一项是()A.狡黠(jiǎoxiá)瞰望(kàn)诘难(jiénàn)咬文 2020-11-10 …
A.灵帷(wéi)吊唁(yàn)为难(nán)身膺重任(yīng)B.纵然(zòng)殉国(xùn) 2020-11-22 …
求add的n,adjignore的adj,nGerman的n(德国)dusty的nsettle的n( 2020-12-12 …
我能给画线的字选择正确的读音用“√”标出。1.老师的字写得(dedéděi)太漂亮了,我们真得(dé 2021-01-06 …