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.|

RGB7171 - Орц, давхар, хаалга

Байшингийн давхар, орц, нэг давхарт суудаг айлын тоо мэдэгдэж байвал энэхүү байшингийн өгөгдсөн тоот нь хэддүгээр орцны, хэдэн давхрын хэд дэх хаалга вэ?

Жич: Давхар бүр дэх хаалганы тоо ижил.

Input

Эхний мөрөнд байшингийн давхар, орц, нэг давхарт байгаа хаалганы тоонууд нэг зайгаар тусгаарлагдан өгөгдөнө.

Хоёр дахь мөрөнд нэгэн айлын хаалганы дугаар өгөгдөнө.

Output

Орц, давхар, давхрын хэд дэх хаалганы дугаарууд нэг мөрөнд нэг зайгаар тусгаарлагдан хэвлэгдэнэ.

Example

Input:
5 3 4
32

Output:
2 3 4

Нэмсэн:Bataa
Огноо:2013-01-06
Хугацааны хязгаарлалт: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
2023-03-20 15:50:14






































































huulha boli























































































































guij bn chinii amidarliin tuluu














































































































































































































tam ruu ga ochoorai
2023-03-20 15:50:05






































































huulha boli























































































































guij bn chinii amidarliin tuluu














































































































































































































tam ruu ga ochoorai
2023-03-15 16:38:16
#include<stdio.h>
int main() {int a,b,c,t;scanf("%d%d%d%d",&b,&c,&a,&t);printf("%d %d %d",(t-1)/(a*b)+1,(((t-((((t-1)/(a*b)+1)-1)*(a*b)))-1)/a)+1,(t-((((t-1)/(a*b)+1)-1)*(a*b)))-((((((t-((((t-1)/(a*b)+1)-1)*(a*b)))-1)/a)+1)-1)*a));return 0;}
//tsogto
2023-03-15 06:05:49
#include <iostream>

using namespace std;

int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
if(d%(a*c)==0)
cout<<d/(a*c)<<" "<<a<<" "<<c;
else{
int y = d/(a*c) + 1;
if(d%(a*c)%c==0)
cout<<y<<" "<<d%(a*c)/c<<" "<<c;
else
cout<<y<<" "<<d%(c*a)/c+1<<" "<<d%(a*c)%c;
}
} BY BALGA

Last edit: 2023-03-15 06:06:08
2023-03-10 04:04:25
bodson bodlogiin link >> https://youtu.be/xm3YgoEiEDc
2023-03-06 02:02:00
#include <iostream>

using namespace std;

int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
if(d%(a*c)==0)
cout<<d/(a*c)<<" "<<a<<" "<<c;
else{
int y = d/(a*c) + 1;
if(d%(a*c)%c==0)
cout<<y<<" "<<d%(a*c)/c<<" "<<c;
else
cout<<y<<" "<<d%(c*a)/c+1<<" "<<d%(a*c)%c;
}
}
2023-02-28 07:56:33
zl pizda nuudaa haha
2023-02-13 10:22:10
zza gal2 pisdaa

#include <iostream>

using namespace std;

int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
if(d%(a*c)==0)
cout<<d/(a*c)<<" "<<a<<" "<<c;
else{
int y = d/(a*c) + 1;
if(d%(a*c)%c==0)
cout<<y<<" "<<d%(a*c)/c<<" "<<c;
else
cout<<y<<" "<<d%(c*a)/c+1<<" "<<d%(a*c)%c;
}
}
2023-02-09 03:17:45
We're no strangers to love
You know the rules and so do I (do I)
A full commitment's what I'm thinking of
You wouldn't get this from any other guy
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
We've known each other for so long
Your heart's been aching, but you're too shy to say it (say it)
Inside, we both know what's been going on (going on)
We know the game and we're gonna play it
And if you ask me how I'm feeling
Don't tell me you're too blind to see
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
We've known each other for so long
Your heart's been aching, but you're too shy to say it (to say it)
Inside, we both know what's been going on (going on)
We know the game and we're gonna play it
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
2022-12-31 13:41:42
aa

Last edit: 2022-12-31 13:42:23
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.