Problem 2712 --Repetitive Processing - Print Test Cases

2712: Repetitive Processing - Print Test Cases

"
Time Limit $2$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $1190$ 正确数量 $522$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 STL

Print Test Cases 

In an online judge system, a judge file may includes multiple datasets to check whether the submitted program outputs a correct answer for each test case. This task is to practice solving a problem with multiple datasets. 

Write a program which reads an integer x and print it as is. Note that multiple datasets are given for this problem.

The input consists of multiple datasets. Each dataset consists of an integer x in a line. 

The input ends with an integer 0. You program should not process (print) for this terminal symbol. 

For each dataset, print x in the following format: 

Case i: x 

where i is the case number which starts with 1. Put a single space between "Case" and i. Also, put a single space between ':' and x.

3
5
11
7
8
19
0
Case 1: 3
Case 2: 5
Case 3: 11
Case 4: 7
Case 5: 8
Case 6: 19

1 ≤ x ≤ 10000 

The number of datasets ≤ 10000

推荐代码 查看2712 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] 倪齐森 640247 2020-10-28 21:41:35
内存最少[$0 $KB] ꧁༺ 看看我的名字是不是很长 ༻꧂ 633844 2020-10-23 20:32:02
第一AC 却又像风捉摸不住 303350 2018-11-03 14:48:07
第一挑战 却又像风捉摸不住 303348 2018-11-03 14:47:42

赛题来源/所属竞赛 会津大学《C++ Programming I》 C++程序设计(入门)

竞赛编号 竞赛名称 竞赛时间 访问比赛
1775 2023-2024-1学期《C语言程序设计》:循环结构I【23计算机】 2023-10-23 00:00:00 请登录
1718 2022-2023-1学期《C语言程序设计》:循环结构I【22计算机】 2022-10-24 08:00:00 请登录
1660 2021-2022-1学期《C语言程序设计》:循环结构I【21计算机】 2021-10-25 00:00:00 请登录
1564 2020-2021-1学期《C语言程序设计》:循环结构I【20计算机12345】 2020-10-23 10:00:00 请登录
1391 2019-2020-1学期《C语言程序设计I》:循环结构I【19计算机12班】 2019-10-23 10:00:00 请登录