Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7012 - Цаг минут секунд

Өгөгдсөн секундыг цаг минут секунд болго.

Input

Секунд Int төрлийн тоон утгаар өгөгдөнө.

Output

Цаг, минут, секундууд хоорондоо 1 зайгаар тусгаарлагдан хэвлэгдэнэ. Цаг минут руу шилжихгүй бол 0 хэвлэнэ.

Example

Input:
3612
Output: 1 0 12

Нэмсэн:Bataa
Огноо:2011-05-15
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2020-10-06 16:51:20
gg
2020-09-28 10:18:02
#include <bits/stdc++.h>
using namespace std;

int main() {
int a, b, c, d;
cin>>a;
d=a/3600;
b=a/60%60;
c=a%60;
cout<<d<<" "<<b<<" "<<c<<endl;
return 0;
}
2020-05-12 09:08:50
#include <iostream>
using namespace std;

int main() {

int a,b,c;
cin>>a;
b=a/60;
c=a%60;
cout<<b<<" "<<c;// your code here

return 0;
}
2020-05-08 11:19:00
#include <iostream>
using namespace std;

int main() {

int a,b,c;
cin>>a;
b=a/60;
c=a%60;
cout<<b<<" "<<c;// your code here

return 0;
}
ez
2020-05-08 11:19:00
#include <iostream>
using namespace std;

int main() {

int a,b,c;
cin>>a;
b=a/60;
c=a%60;
cout<<b<<" "<<c;// your code here

return 0;
}
ez
2020-04-29 12:47:59
2
2020-04-29 12:47:38
1
2020-01-23 05:12:01
#include <stdio.h>
main()
{
int a,b,c,d,e;

scanf("%d",&a);


b = a/3600;
e = a%3600;
c = e/60;
d = e%60;
printf("%d %d %d",b,c,d);

}
2020-01-03 16:06:37
#include<stdio.h>
#include<stdlib.h>
int main()
{
int secund;
scanf("%d",&secund);
int hour;
int minut;
int s;
hour = secund/3600;
minut = (secund-(hour*3600))/60;
s = secund-(hour*3600+minut* 60);
printf("%d %d %d",hour, minut,s);
system("pause");
return 0;
}
2019-12-24 07:40:14
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{ freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int ts,min,sec,a,b,c,s,minus,minus1;
scanf("%d",&s);
ts=s/3600;
printf(" %d",ts);
minus=s-ts*3600;
min=minus/60;
printf(" %d",min);
sec=minus-min*60;
printf(" %d",sec);




}
easy 2
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.