注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
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
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.
Test Case1:
Input: User1, User2
Output: 2
Test Case2:
Input: User2, User3
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 binput Download Test Inputmighty
Expected 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.
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
。。。。。。。。。。。。。。。。。。。。。。。。。楼主实习要找不到了……感觉暑期要各种语言刷一次了……
|