点击这里更换您喜欢的皮肤wtboj 首页
请点击这里登入noios   首页 入门 c++讲义 入门教程视频 金牌教程 入门视频 站务 公告 | 题库 记录 竞测 测试 闯关 作业 排名 团队 讨论 | 换肤 | 登入 注册  
News >>   新增功能:各团队管理员可以发布本团队作业了 ()

From VijosGuest0
保险箱密码
背景 Background
  为了for beginngers,特设此题,^_^
描述 Description
  保险箱密码。某保险公司的保险箱的密码是由各分公司的n个会计员的密码累加起来的。每个会计员的密码均为5位,而且是由大写字母和数字组成。26个字母A,B,C,D,E....Z分别代表:1,2,3,4,5,....26,例如:假如有3个会计员,会计员1的密码为17B2M表示172213,会计员2的密码为:BK431表示211431,会计员3的密码为:42D53表示42453,则保险箱的密码为:426097。(172213+211431+42453),你根据n个会计员的密码算算保险箱的密码吗?
输入格式 Input Format
  共n+1行
第1行为一个整数n.
第2...n+1行为各个会计员的原始5位密码。

输出格式 Output Format
  一个整数,表示保险箱的密码。
样例输入 Sample Input
 
样例输出 Sample Output
 
时间限制 Time Limitation
  各个测试点1s
注释 Hint
  Free Pascal Code:
-------------------
program Plus;
var a,b:longint;
begin
 readln(a,b);
 writeln(a+b);
end.

C++ Code:
-------------------
#include <iostream>
using namespace std;
int main(){
 int a,b;
 cin>>a>>b;
 cout<<a+b<<endl;
 return 0;
}
Flag
  
题号
  P1053
  其它
通过
  8人
提交
  61次
通过率
  13%
难度
  0
提交 讨论 题解
 Copyright wtboj © 2005-2006. www.wutuobang.date Powered by wtboj 关于 联系 帮助
 wtboj Information ---- Total Users : 1242 | Online Users / Processes : 0 / 69 | Processed Time : 94 ms | Server Time : 2025/4/27 1:25:00