一亩三分地论坛

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

扫码关注一亩三分地公众号
查看: 741|回复: 3
收起左侧

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

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

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

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

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

x
正在做IBM的OA献上新鲜的直播……5道题
第一题 问想去的城市……全选. 鍥磋鎴戜滑@1point 3 acres


                               
登录/注册后可看大图

. 鐗涗汉浜戦泦,涓浜╀笁鍒嗗湴

第二题 让选择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.. 1point3acres.com/bbs
Input:
For example, in the log file below, the affinity of “user1” and “user2” is 2

User1,page1
. more info on 1point3acres.com
User2,page1
. 1point 3acres 璁哄潧
User3,page2

User2,page3

User2,page3

User2,page4-google 1point3acres

User3,page3

User3,page1

User1,page3

User2,page4. From 1point 3acres bbs


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


Test Case1:
Input: User1, User2
Output: 2
Test Case2:
Input: User2, User3. visit 1point3acres.com for more.
Output: 2


. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
                               
登录/注册后可看大图

第三题……不限时间. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
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,. 1point 3acres 璁哄潧
'TEN': 10.00,. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷
'TWENTY': 20.00,
'FIFTY': 50.00,. 1point3acres.com/bbs
'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.. 1point3acres.com/bbs

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. visit 1point3acres.com for more.
Test 4
Test Input Download Test Input45;50
Expected Output Download Test OutputFIVE



                               
登录/注册后可看大图
. from: 1point3acres.com/bbs
第四题……我靠能用CPP了……激动……又不限时间了
Programming Challenge Description:-google 1point3acres
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.
. 鍥磋鎴戜滑@1point 3 acres
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:
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. 1point3acres.com/bbs
Test 2.1point3acres缃
Test Input Download Test Inputmighty
Expected Output Download Test Outputg1h1i1m1t1y1

. 1point3acres.com/bbs

                               
登录/注册后可看大图
. Waral 鍗氬鏈夋洿澶氭枃绔,
第五题 . From 1point 3acres bbs
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.

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

Test 1. From 1point 3acres bbs
Test Input Download Test Input2,10. more info on 1point3acres.com
Expected Output Download Test Output4-google 1point3acres


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

本帖被以下淘专辑推荐:

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

使用道具 举报

 楼主| 小翔926 发表于 2016-10-18 02:21:08 | 显示全部楼层
我们家的狗叫猫 发表于 2016-10-17 06:22
时隔这么久 挖到了楼主这帖子 好搞笑 楼主最后找到了吗

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

使用道具 举报

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

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

使用道具 举报

本版积分规则

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

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

关闭

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

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

custom counter

GMT+8, 2016-12-10 00:29

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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