# URI Online Judge Solution 1019 Time Conversion – URI 1019 Solution in C, C++, Java, Python and C#

### URI Online Judge Solution 1019 Time Conversion – URI 1019 Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1019 Time Conversion  | Beginner

Problem Name: 1019 Time Conversion code
Problem Number : URI – 1019 Time Conversion solution
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)

### URI Solution 1019 Time Conversion  Code in C / URI 1019 solution in C:

`#include <stdio.h>int main(){ int t; scanf("%d", &t); int h = t / 3600; t = t - (h * 3600); int m = t / 60; t = t - (m * 60); printf("%d:%d:%dn", h, m, t); return 0;}`

### URI Solution 1019 Time Conversion  Code / URI 1019 solution in CPP:

`#include <iostream>using namespace std;int main(){ int t; cin >> t; int h = t / 3600; t = t - (h * 3600); int m = t / 60; t = t - (m * 60); cout << h << ":" << m << ":" << t << endl; return 0;}`

### URI Solution 1019 Time Conversion  Code / URI 1019 solution in Java:

`import java.util.Scanner;public class Main { public static void main(String[] args) {  int t;  Scanner sc = new Scanner(System.in);  t = sc.nextInt();  int h = t / 3600;  t = t - (h * 3600);  int m = t / 60;  t = t - (m * 60);  System.out.printf("%d:%d:%dn", h, m, t); }}`

### URI Solution 1019 Time Conversion  Code / URI 1019 solution in  C# (C Sharp):

Demonstration:

It’s a simple time conversion problem of URI online judge.
Look the screenshot and see the time is in seconds. We need to convert it to hour, minute and second.

To convert hour divide it by 3600 [1 hour = 3600 seconds]

`int h = t / 3600;`

Then,  subtract the hour * 3600 from given time and get reminder time

`t = t - (h * 3600);`

Then, the time is now in seconds and to find minute, just divide it by 60

`int m = t / 60;`

And the rest of the work is same..Just do that code. Happy coding…
Just implement this in coding. Since having any problem just put a comment below. Thanks

Tags: URI Online Judge Solution, URI OJ Solution list, URI Problems Solution, URI solver, URI all problem solution list, URI Time Conversion code in C, URI 1019 code in C++, URI Time Conversion solution in C, URI solution, URI 1019 solution in C,URI 1019 solution in C++-CPP,URI 1019 solution in C# (C sharp),URI 1019 solution in Java,URI 1019 solution in Python,
{"ft_lang_label":"__label__en","ft_lang_prob":0.53139216,"math_prob":0.85864484,"size":2386,"snap":"2023-40-2023-50","text_gpt3_token_len":699,"char_repetition_ratio":0.20990764,"word_repetition_ratio":0.26477024,"special_character_ratio":0.36253142,"punctuation_ratio":0.1873805,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98846906,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-12-05T11:20:03Z\",\"WARC-Record-ID\":\"<urn:uuid:ca21d2df-1fd1-4aa1-8c47-20e3ca2ab18f>\",\"Content-Length\":\"129256\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:9d5bb80d-9352-4935-a213-530420bd5318>\",\"WARC-Concurrent-To\":\"<urn:uuid:00bb63f2-3c4a-4889-82d2-905d1be2ec99>\",\"WARC-IP-Address\":\"131.153.165.43\",\"WARC-Target-URI\":\"https://codinghousebd.com/blog/uri-online-judge-solution-1019-time-conversion-uri-1019-solution-in-c-c-java-python-and-c/\",\"WARC-Payload-Digest\":\"sha1:N222IPSRIGFGOASXXH2GVLJL6RVQZIWQ\",\"WARC-Block-Digest\":\"sha1:6DNRV3JZRDIHTLBGJCOYBIFOBPHXACPO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100551.17_warc_CC-MAIN-20231205105136-20231205135136-00410.warc.gz\"}"}