一亩三分地论坛

 找回密码
 获取更多干货,去instant注册!

一亩三分地官方iOS手机应用下载
查看: 1152|回复: 3
收起左侧

IBM Cloud OA新鲜跪经。。。。。

[复制链接] |试试Instant~ |关注本帖
小翔926 发表于 2016-4-16 14:54:04 | 显示全部楼层 |阅读模式

2016(4-6月) 码农类 硕士 实习@IBM - 网上海投 - 在线笔试 |Otherfresh grad应届毕业生

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看,没有帐号?获取更多干货,去instant注册!

x
正在做IBM的OA献上新鲜的直播……5道题
第一题 问想去的城市……全选


                               
登录/注册后可看大图



第二题 让选择Java和Python………………我去楼主是CPP选手啊= =……让好基友帮我做的,我的锅,没告清楚他输入……30分钟……结果因为输入没弄对……傻逼了
Programming Challenge Description:
A web server logs page views in a log file. The log file consists of a line per page view. A page view consists of a page id and a user id, separated by a comma. The affinity of a pair of pages is the number of distinct users who viewed both.
Input:
For example, in the log file below, the affinity of “user1” and “user2” is 2. 1point3acres.com/bbs
. visit 1point3acres.com for more.
User1,page1

User2,page1

User3,page2

User2,page3

User2,page3
. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
User2,page4

User3,page3

User3,page1

User1,page3

User2,page4. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷


Output:
The Code should be able to handle various length and combinations..1point3acres缃


Test Case1:
Input: User1, User2-google 1point3acres
Output: 2
Test Case2:
Input: User2, User3
. 鍥磋鎴戜滑@1point 3 acresOutput: 2
. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷


                               
登录/注册后可看大图
. From 1point 3acres bbs
第三题……不限时间
Programming Challenge Description:
The goal of this challenge is to design a cash register program. You will be given two decimal numbers. The first is the purchase price (PP) of the item. The second is the cash (CH) given by the customer. Your register currently has the following bills/coins within it:
'PENNY': .01,
'NICKEL': .05,
'DIME': .10,
'QUARTER': .25,
'HALF DOLLAR': .50, 鏉ユ簮涓浜.涓夊垎鍦拌鍧.
'ONE': 1.00,
'TWO': 2.00,
'FIVE': 5.00,
'TEN': 10.00,
'TWENTY': 20.00,
'FIFTY': 50.00,
'ONE HUNDRED': 100.00
The aim of the program is to calculate the change that has to be returned to the customer.

Input:
Your program should read lines of text from standard input. Each line contains two numbers which are separated by a semicolon. The first is the Purchase price (PP) and the second is the cash(CH) given by the customer.

Output:
For each line of input print a single line to standard output which is the change to be returned to the customer. In case the CH < PP, print out ERROR. If CH == PP, print out ZERO. For all other cases print the amount that needs to be returned, in terms of the currency values provided. The output should be alphabetically sorted.. 鐗涗汉浜戦泦,涓浜╀笁鍒嗗湴

Test 1
Test Input Download Test Input15.94;16.00
Expected Output Download Test OutputNICKEL,PENNY
Test 2
Test Input Download Test Input17;16
Expected Output Download Test OutputERROR
Test 3
Test Input Download Test Input35;35
Expected Output Download Test OutputZERO
Test 4
. more info on 1point3acres.comTest Input Download Test Input45;50
Expected Output Download Test OutputFIVE



                               
登录/注册后可看大图

第四题……我靠能用CPP了……激动……又不限时间了
Programming Challenge Description:. 1point 3acres 璁哄潧
Write a program that, given a string, outputs a new string that contains each character in the original string exactly one time, followed by the frequency of occurrences of that character in the original string, and in alphabetical order.

Input:
Your program should read lines from standard input. Each line contains a string. The string will consist of ASCII characters and no spaces. Ignore case when considering a character. e.g. 'a' and 'A' are to be interpreted to be the same. When printing out the character, it should always be in lowercase and the characters should be alphabetically sorted.

Output:. from: 1point3acres.com/bbs
Print to standard output the new string comprised of each character followed by its frequency. Print out each result on a new line.
. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷
Test 1
Test Input Download Test Inputhello
Expected Output Download Test Outpute1h1l2o1
Test 2
Test Input Download Test Inputmighty
-google 1point3acresExpected Output Download Test Outputg1h1i1m1t1y1



                               
登录/注册后可看大图

第五题
Programming Challenge Description:
Given two integers N and M, count the number of prime numbers between N and M (both inclusive).. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷
. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷
Input:
Your program should read lines from standard input. Each line contains two comma-separated positive integers..鏈枃鍘熷垱鑷1point3acres璁哄潧

Output:
Print out the number of primes between N and M (both inclusive).

Test 1
Test Input Download Test Input2,10
Expected Output Download Test Output4


。。。。。。。。。。。。。。。。。。。。。。。。。楼主实习要找不到了……感觉暑期要各种语言刷一次了……

本帖被以下淘专辑推荐:

我们家的狗叫猫 发表于 2016-10-17 22:22:37 | 显示全部楼层
关注一亩三分地公众号:
Warald_一亩三分地
时隔这么久 挖到了楼主这帖子 好搞笑 楼主最后找到了吗
回复 支持 反对

使用道具 举报

 楼主| 小翔926 发表于 2016-10-18 02:21:08 | 显示全部楼层
关注一亩三分地微博:
Warald
我们家的狗叫猫 发表于 2016-10-17 06:22. 1point 3acres 璁哄潧
时隔这么久 挖到了楼主这帖子 好搞笑 楼主最后找到了吗

这是一个伤心的故事。。。没找到。。。。。。要早点找。。。。刚来了上学就开始。。。
回复 支持 反对

使用道具 举报

我们家的狗叫猫 发表于 2016-10-18 23:39:41 | 显示全部楼层
小翔926 发表于 2016-10-18 02:21
这是一个伤心的故事。。。没找到。。。。。。要早点找。。。。刚来了上学就开始。。。

楼主别灰心 刷好题 直接fulltime
回复 支持 反对

使用道具 举报

本版积分规则

请点这里访问我们的新网站:一亩三分地Instant.

Instant搜索更强大,不扣积分,内容组织的更好更整洁!目前仍在beta版本,努力完善中!反馈请点这里

关闭

一亩三分地推荐上一条 /5 下一条

手机版|小黑屋|一亩三分地论坛声明 ( 沪ICP备11015994号 )

custom counter

GMT+8, 2017-3-30 15:37

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

快速回复 返回顶部 返回列表