Tap here to switch tabs
Problem
Submissions

Problem: Calculate Delayed Arrival Time

med
30 min
Try to solve the Calculate Delayed Arrival Time problem.

Statement

You are given two positive integers, arrivalTime representing the scheduled arrival time of a train in hours, and delayedTime representing the delay time in hours.

Return the actual time the train will arrive using the 2424 hour format.

Constraints:

  • 1≤1 \leq arrivalTime <24< 24

  • 1≤1 \leq delayedTime ≤24\leq 24

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Calculate Delayed Arrival Time

med
30 min
Try to solve the Calculate Delayed Arrival Time problem.

Statement

You are given two positive integers, arrivalTime representing the scheduled arrival time of a train in hours, and delayedTime representing the delay time in hours.

Return the actual time the train will arrive using the 2424 hour format.

Constraints:

  • 1≤1 \leq arrivalTime <24< 24

  • 1≤1 \leq delayedTime ≤24\leq 24