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

RGB7170 - Давхрын хэд дэх хаалга

Нэг орцтой байрны давхрын тоо, давхар дахь хаалганы тоо өгөгдөв. Айлын хаалганы дугаар мэдэгдэж байгаа үед тэрхүү айл хэд дэх давхрын хэд дэх хаалганд амьдардаг вэ? Давталт ашиглахгүй бодно.

Input

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

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

Output

Давхрын тоо, давхар дахь хэд дэх хаалганы тоо зайгаар тусгаарлагдан хэвлэгдэнэ. 

Example

Input:
5 4
10
Output: 3 2

Нэмсэн: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
2022-09-26 10:56:16
#include<iostream>
using namespace std;
int main()
{
int p,n,m,s=1,d;
cin>>n>>m>>d;
while (d>0)
{
if(d-m>0) s++;
d=d-m;
if(d-m>=0) p=d-m;

}
cout<<s<<" "<<p;
return 0;

} huul lalruuda
2022-09-17 06:31:54
#include <iostream>
using namespace std;
int main(){
int a,b,c,d,e;
cin >>a>>b>>c;
c=c-1;
e=c%b+1;
d=c/b+1;
cout<<d<<" "<<e;
return 0;
} hfhuifu
2022-08-23 12:12:38
#include <stdio.h>
main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int n=c/b;
if (c%b!=0)
printf("%d %d",n+1, c-(n*b));
else printf("%d %d",n,b);
/huul hh
}
2022-08-22 09:14:58
Tergelee comment huulahaa boliioo
2022-07-28 20:33:18
Sup guys tottally legit answer
#include <iostream>
using namespace std;

int main() {

int a , b c , answerv2 , answer;
scanf("%d%d%d", &a, &b , &c);
answer = c % b ;
answerv2 = c / b + 1;
printf("%d %d" answerv2 , answer );

return 0;
}
2022-07-01 17:03:52
chni eej <3 <3 <3 ter oroig martkuee
2022-06-08 08:02:16
egshiglen<33333333333333
2022-05-31 09:26:12
OHH
2022-05-31 09:26:12
pzdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa



Last edit: 2022-06-03 05:26:41
2022-05-30 03:02:51
psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psdapsda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda psda
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.