北大ACM,Presentation Error,OutputThe output will only be the converted number as it would appear on the display of the calculator.The number should be right justified in the 7-digit display.If the number is to large to appear on the display,then pr

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 02:59:02

北大ACM,Presentation Error,OutputThe output will only be the converted number as it would appear on the display of the calculator.The number should be right justified in the 7-digit display.If the number is to large to appear on the display,then pr
北大ACM,Presentation Error,
Output
The output will only be the converted number as it would appear on the display of the calculator.The number should be right justified in the 7-digit display.If the number is to large to appear on the display,then print ``ERROR'' (without the quotes) right justified in the display.
#include
#include
using namespace std;
int bas(char c)
{
if(isalpha(c))
return c - 'A' + 10;
return c - '0';
}
int main()
{
char str[8];
int l,b1,b2,n,k,num[10];
while(cin >> str >> b1 >> b2)
{
n = k = 0;
l = strlen(str);
for(int i=0; i 7) cout

北大ACM,Presentation Error,OutputThe output will only be the converted number as it would appear on the display of the calculator.The number should be right justified in the 7-digit display.If the number is to large to appear on the display,then pr
第28行," ERROR"改为"ERROR",不带空格,试试.

怎样进入北大acm题库 北大ACM 1753怎么解 北大ACM第1519道题! 北大ACM第2229道题咋做啊? 北大ACM中的1001浮点数题咋做啊? 求北大ACM 3909答案(写明算法) 北大ACM试题1005我用C语言写的代码如下:请问为甚么总是presentation error?#include #include #define SIZE 1000struct coordinate{double x;double y;}point[SIZE];int main(){int i;int n;struct coordinate point[SIZE];double s ;int year;d 北大ACM,Presentation Error,OutputThe output will only be the converted number as it would appear on the display of the calculator.The number should be right justified in the 7-digit display.If the number is to large to appear on the display,then pr presentation 北大ACM中第1001浮点数这题咋做啊?请高人用C语言帮我实现一下, 北大ACM第1519道题!急!求解!新手!待高人指点!多谢 【求助】北大acm JudgeOnline 请问谁有用C语言编写的北大acm JudgeOnline上面的题目的代码?不要求全不要有,poj1094、poj1125、poj1251、poj1915、poj1979有这五道题最好,或者一道都行啊(提供个链接都行) ACM解题报告我想要一个ACM的题型总结,最好 题 都是北大平台上的比如:标明题号( 最好都是北大平台上的题目)动态规划:标明题号. 北大ACM 1993题!快要交了..实在做不出来..有没有哪位能帮忙下...谢谢啦!程序正确追加100分!绝对!题目:http://acm.pku.edu.cn/JudgeOnline/problem?id=1993 北大ACM,题号3615题的解题思路是什么,用什么算法.今天做题遇到了些困难,给一个解题思路. 【英语翻译】presentation presentation是什么意思 mini presentation