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
2025-02-18 15:49:29
#include<iostream>
using namespace std;
main(){
int a,b,c,d;
cin>>a;
d=a/3600;
b=a%60;
c=(a/60)%60;
cout<<d<<' '<<c<<' '<<b;
return 0;
}
2025-02-13 01:37:55
Cringe queen(munjig)
2025-02-12 03:45:03
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a, b, c, d, x;

cin >> a;
b = a / 3600;
d = (a - b * 3600) / 60;
x = a % 60;
cout << b << endl;
cout << d << endl;
cout << x << endl;
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2025-02-04 08:06:02
ermuunee hohin
2025-01-29 10:52:31
#include <iostream>
#include <string>
using namespace std;

int main() {
int c = 0,a;
string s;

for (int i = 1; i <= 12; i++) {
cin>>s;
a=s.size();
if (a == i) {
c++;
}
}


cout << c;

return 0;
}
2025-01-28 05:42:41
puujee huurhun azrag
2024-12-11 09:30:17
#include<iostream>
using namespace std;
main(){
int a,b,c,d;
cin>>a;
d=a/3600;
b=a%60;
c=(a/60)%60;
cout<<d<<' '<<c<<' '<<b;
return 0;
}
2024-12-11 07:11:20
#include <iostream>
using namespace std;

int main() {

// your code here
int tsag, minute, second, a;
cin >>a;
tsag = a/3600;
minute = a%3600/60;
second = a%60;
cout <<" "<< tsag<<" " << minute<< " "<< second;
return 0;
}
2024-12-11 07:09:23
#include <iostream>
using namespace std;

int main() {

// your code here
int tsag, minute, second, a;
cin >>a;
tsag = a/3600;
minute = a%3600/60;
second = a%60;
cout <<" "<< tsag<<" " << minute<< " "<< second;
return 0;
}
2024-12-09 15:33:07
Zoil
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.