编程介的小学生 2019-08-21 22:37 采纳率: 20.5%
浏览 58

International Collegiate Programming Contest,用C语言

Problem Description
Do you have any idea how much work must be done to make a competition like this to happen? Reserve rooms, install computers, buy some food, print certificates - these are only some of the important tasks. Can you imagine how many sleepless nights have been spent since the first CTU competition in 1995? And this was only for people like you to enjoy the ICPC. Wow!

Beside others, the problem set must be carefully prepared. This includes not only the problem statements but also solutions and test data. It is really a large amount of work. Would you help us, please? Your task is to create a test input data for the Problem B (banking).

Input
The input to your program will be some valid and correct output for Problem B.

Output
Print any input that will exactly satisfy the Input Specification for the Problem B and that would generate the given output.

Sample Input
withdraw 20.00: ok
deposit 35.00: ok
withdraw 200.00: insufficient funds
transfer 100.50: ok
transfer 50.00: interbank
create: already exists
create: ok
transfer 100.00: same account
transfer 100.00: insufficient funds
withdraw 100.00: no such account
deposit 0.11: no such account
transfer 10000.00: no such account
end

deposit 6.92: ok
withdraw 9.68: ok
withdraw 6.64: ok
end

goodbye

Sample Output
3
1234/5 100.00
4321/6 150.20
5432/5 1600.00
withdraw 1234/5 20.00
deposit 1234/5 35.00
withdraw 1234/5 200.00
transfer 5432/5 1234/5 100.50
transfer 5432/5 4321/6 50.00
create 1234/5
create 1236/5
transfer 1236/5 1236/5 100.00
transfer 1236/5 1234/5 100.00
withdraw 0000/0 100.00
deposit 0000/0 0.11
transfer 1234/5 0000/0 10000.00
end

1
9999/9 9.40
deposit 9999/9 6.92
withdraw 9999/9 9.68
withdraw 9999/9 6.64
end

0

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 sub地址DHCP问题
    • ¥15 delta降尺度计算的一些细节,有偿
    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大