📄 1193.txt
字号:
题1193:题目要求是“The input will consist of several lines of exactly 256 hex characters. The end of the input is indicated by a memory state that has a stop instruction (an "8") at address 00.”
我使用以下输出,超时:
for(i=0;i<256;i++)
{
if(i!=0 && i%64==0)scanf("\n");
scanf("%c",&mem[i]);
}
改为:gets(mem);
即不能单个字符输入,而应该一次性读入字符串。
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -