Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7178 - Нийлбэр |
Натурал тоог дэс дараалсан натурал тооны нийлбэрт хэд хэдэн янзаар задалж бичиж болно.
Жишээ нь 15=7+8, 15=4+5+6, 15=1+2+3+4+5 гэх мэт.
N натурал тоог хамгийн олон тооны нийлбэрт задлаж бичих програм зохио.
Input
Натурал тоо N, 1<=N<=10^9
Output
Хамгийн олон дараалсан тооны нийлбэрийн эхний тоо ба уг нийлбэрийн тоонуудын тоо болох хос тоо байна.
Example
Input:
14
Output:
2 4
Тайлбар: 14=2+3+4+5 учир нийлбэрийн хамгийн бага тоо 2, нийт 4 тооны нийлбэрт хамгийн уртдаа бичиж болно.
Нэмсэн: | Bataa |
Огноо: | 2013-04-11 |
Хугацааны хязгаарлалт: | 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 |
Эх сурвалж: | 2013 он аймаг, багш |
hide comments
|
|||||||||||
2019-10-12 08:03:54
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:54
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:53
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:53
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:53
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:52
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:52
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:52
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:52
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |
|||||||||||
2019-10-12 08:03:51
oh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazyoh you not a crazy |