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
2024-04-08 05:47:32
JK JK JK JK BTS JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK BTS JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK. JK JK JK JK JK JK JK JK JK. JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK. JK JK JK JK JK JK JK JK JK JK JK JK JK JK JKJK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK J K JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK JK. JK JK JK JK JK JK JK JK JK JK JKJK '
2024-04-08 05:43:04
DAADSdsADSASAEWWEWRWFSDSCXSDHJHGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGHHHHHHJKJKJJKJKJKJKJKJKJJKJKJKJKJ
2024-04-08 05:41:43
s/mfdmk.,mdl.sml.,mm,xzcmnvmNSFK:ekljalkjer;kyjmf,./bf /mndgkjLaKWPt5poq3rk,dfl;gkjgbijaesigajfgkvnjka
ikurwiopwqo4ruqentgklljdfcklgjopaujklgntm,jrtioypuqitrghdncmgbn ahklj'ou oi'woyio
iwyowtitotweiryhm,fgls
2024-04-08 05:41:29
nm,,JGG

Last edit: 2024-04-08 05:42:22
2024-03-07 11:27:57
Gigachads who use BrainFuck
2024-01-26 18:16:43
#include<stdio.h>
main()
{
int a,b,c,d,orts, dawhar, ail;
scanf("%d %d %d %d",&b,&a,&c,&d);
if(b*c<d){
orts=(d/(b*c))+1;
dawhar=d/c;
if(dawhar>b){
dawhar=dawhar%b;
if(dawhar==0){
dawhar=b;
}
ail=d%c;
if(ail==0){
ail=c;
}
}
}
else if(b*c==d){
orts=1;
dawhar=b;
ail=c;
}
else if(b*c>d){
orts=1;
dawhar=d/c;
if(dawhar>b){
dawhar=dawhar%b;
if(dawhar==0){
dawhar=b;
}
}
ail=d%c;
if(ail==0){
ail=c;
}
}
printf("%d %d %d",orts,dawhar,ail);
}
eniinii sda yg yu n bolohgui baigaam be hha
2024-01-19 05:03:35
#include <iostream>
using namespace std;

int main() {
int a, b, c, v, d;
cin >> a;
cin >> b;
cin >> c;
v = c / b;
d = c % b;
if (d == 0) {
d = b;
} else {
v = v + 1;
}
cout << v << " " << d << endl;
}
RGB7170
2024-01-19 05:02:50
hello guys
2024-01-17 09:03:55
88888888888888


Last edit: 2024-01-17 09:05:35
2023-12-23 17:14:25
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,k=1,p,s=0,i,u=0;
cin>>a>>b>>c>>d;
p=a;
for(i=1; i<=a*b*c; i++){
u++;
s++;
if(u==d){
cout<<k<<" "<<p<<" "<<s;
return 0;
}
if(i%(b*c)==0){
p--;
}
if(k==b){
k=1;
}
if(i%c==0){
if(k==b){
k=1;
continue;
}
k=k+1;
s=0;
}
}
}
avdgvvvshhhh
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.