Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
||||||||||||||
2021-11-17 10:34:52
kk Last edit: 2021-11-17 10:35:24 |
||||||||||||||
2021-11-16 02:03:02
expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin'expected initializer before 'cin' |
||||||||||||||
2021-11-10 09:22:50
int a, b, c, d, e; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); if (c%b==0) { d=c/b; e=b; } else { d=c/b+1; e=c%b; } System.out.println(d+ " "+e); |
||||||||||||||
2021-10-14 10:12:31
NEVER GONNA GIVE YOU UP NEVER GONNA LET YOU DOWN NEVER GONNA RUN AROUND AND HURT YOU NEVER GONNA MAKE YOU CRY NEVER GONNA SAY GOODBYE GET RICKROLLED STOP COPYING NOOBS |
||||||||||||||
2021-09-30 05:32:08
#include <iostream> #include <math.h> using namespace std; int main() { int a, b, c, d, haalga; cin >> a >> b; cin >> c; if(c % b == 0){ haalga = b; d = c/b; } else { haalga = c%b; d = (c/b)+1; } cout << d << " "; cout << haalga; return 0; } |
||||||||||||||
2021-05-10 20:06:15
#include <stdio.h> main() { int a, b, c, e, f; scanf("%d %d %d", &a, &b, &c); if(c%b>0) { e=c/b+1; } else e=c/b; if(c%b<=0) { f=b; } else f=c%b; printf("%d %d", e, f); return 0; } #include <stdio.h> main() { int n,t,h,d; scanf("%d%d\n%d",&n,&t,&h); if(t<5){ if(h%t!=0) //10%4 printf("%d %d",h/t+1,h%t); else printf("%d %d",h/t,h%t); } if(t>=5) printf("%d %d",h/t,h%t); } ///// yalgaa yu bna |
||||||||||||||
2021-02-27 11:56:08
#include <stdio.h> main() { int a, b, c, e, f; scanf("%d %d %d", &a, &b, &c); if(c%b>0) { e=c/b+1; } else e=c/b; if(c%b<=0) { f=b; } else f=c%b; printf("%d %d", e, f); return 0; } amjilt<3 |
||||||||||||||
2021-02-23 12:28:18
| A A STOP HUULAHING. JUST DO IT DONT LOOK FOR COOKED RICE BELIEVE UR SELF. YOU CAN DO IT >:( |
||||||||||||||
2021-02-23 12:26:48
JUST DO IT. JUST DO IITTTTT. NOTHING IS IMPOSSIBLE. JUST DO IT. DO NOT HUULAH >:0 |
||||||||||||||
2021-02-19 01:28:38
ez |