传统题 1000ms 256MiB

[2023 OUCC Round 1] Cost of Petrol

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Alesis is worrying about the CO2\text{CO}_2 emissions produced by his petrol car.

Task

Write a program that takes, as input, the litres of petrol he uses each month of a year.

Constraints:

[Note: you do not need to check constraints in your code for this competition - they are just for information about the range of test data values.]

  • The monthly figures are given in whole litres.
  • Monthly litres supplied are between 0 and 200 (inclusive).
  • 1 litre of petrol produces 0.0024 tonnes of CO2\text{CO}_2 when burnt. (We are ignoring extraction, refining, etc.)
Input format:
  • A row of 12 integers separated by spaces.
Output format:
  • An integer representing the tonnes of CO2\text{CO}_2 produced, rounded down to the nearest tonne.
Example:
142 150 120 182 202 205 231 258 214 162 148 122
5
Calculation using example input data:
Annual C02 = 0.0024 x total litres
           = 5.1264
           = 5 tonnes

2025 OUCC

未参加
状态
已结束
规则
IOI
题目
17
开始于
2025-5-4 17:00
结束于
2025-5-4 19:30
持续时间
2.5 小时
主持人
参赛人数
2