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

RGB7317 - Цөөн квадрат

Өгөгдсөн тэгш өнцөгтийг хамгийн цөөн квадратадуудад хуваа.  

Input

2 бүхэл эерэг тоо зайгаар тусгаарлагдан өгөгдөнө.

Output

Мөр тус бүрт квадратын талын хэмжээ хэдэн ширхэг байгааг зайгаар тусгаарлан хэвлэнэ.

Example

Input 1:

11 4

Output:

3 1
1 3

 

4 2

3 1

1 3

 


Нэмсэн:Bataa
Огноо:2013-01-14
Хугацааны хязгаарлалт: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-12-08 10:51:18
YOU ARE Used car salesman charged with over 80 counts including rape, assault, battery, extortion, grand theft, larceny, lewd and lascivious behavior, oral copulation, sexual assault, sexual battery, sodomy, and prison escape. Also committed scams in California, Florida (where he was arrested after being featured in America's Most Wanted), Georgia, Massachusetts, and Pennsylvania. AND Human trafficker convicted of Violation of the Colorado Organized Crime Control Act, trafficking a minor for sexual servitude, human trafficking for sexual servitude, attempt to commit pimping of a child, attempt to commit patronizing a prostituted child, pandering of a child, possession of a forged instrument, possession of a forged device, two counts of pimping, and three counts of forgery. According to Colorado Department of Corrections, he received two sentences of 96 years, one sentence of 64 years, and one sentence of 48 years and a life sentence. He will be paroled on February 8, 2172, when he's 183 years old. ALSO Molested 16 boys aged 2 to 14 in California. Habitual sex offender in California who violated the terms by going near children and raping many of them. THAT'S ALL
2024-12-08 10:44:51
'A path from a point approximately 330 metres east of the most south westerly corner of 17 Batherton Close, Widnes and approximately 208 metres east-south-east of the most southerly corner of Unit 3 Foundry Industrial Estate, Victoria Street, Widnes, proceeding in a generally east-north-easterly direction for approximately 28 metres to a point approximately 202 metres east-south-east of the most south-easterly corner of Unit 4 Foundry Industrial Estate, Victoria Street, and approximately 347 metres east of the most south-easterly corner of 17 Batherton Close, then proceeding in a generally northerly direction for approximately 21 metres to a point approximately 210 metres east of the most south-easterly corner of Unit 5 Foundry Industrial Estate, Victoria Street, and approximately 202 metres east-south-east of the most north-easterly corner of Unit 4 Foundry Industrial Estate, Victoria Street, then proceeding in a generally east-north-east direction for approximately 64 metres to a point approximately 282 metres east-south-east of the most easterly corner of Unit 2 Foundry Industrial Estate, Victoria Street, Widnes and approximately 259 metres east of the most southerly corner of Unit 4 Foundry Industrial Estate, Victoria Street, then proceeding in a generally east-north-east direction for approximately 350 metres to a point approximately 3 metres west-north-west of the most north westerly corner of the boundary fence of the scrap metal yard on the south side of Cornubia Road, Widnes, and approximately 47 metres west-south-west of the stub end of Cornubia Road be diverted to a 3 metre wide path from a point approximately 183 metres east-south-east of the most easterly corner of Unit 5 Foundry Industrial Estate, Victoria Street and approximately 272 metres east of the most north-easterly corner of 26 Ann Street West, Widnes, then proceeding in a generally north easterly direction for approximately 58 metres to a point approximately 216 metres east-south-east of the most easterly corner of Unit 4 Foundry Industrial Estate, Victoria Street and approximately 221 metres east of the most southerly corner of Unit 5 Foundry Industrial Estate, Victoria Street, then proceeding in a generally easterly direction for approximately 45 metres to a point approximately 265 metres east-south-east of the most north-easterly corner of Unit 3 Foundry Industrial Estate, Victoria Street and approximately 265 metres east of the most southerly corner of Unit 5 Foundry Industrial Estate, Victoria Street, then proceeding in a generally east-south-east direction for approximately 102 metres to a point approximately 366 metres east-south-east of the most easterly corner of Unit 3 Foundry Industrial Estate, Victoria Street and approximately 463 metres east of the most north easterly corner of 22 Ann Street West, Widnes, then proceeding in a generally north-north-easterly direction for approximately 19 metres to a point approximately 368 metres east-south-east of the most easterly corner of Unit 3 Foundry Industrial Estate, Victoria Street and approximately 512 metres east of the most south easterly corner of 17 Batherton Close, Widnes then proceeding in a generally east-south, easterly direction for approximately 16 metres to a point approximately 420 metres east-south-east of the most southerly corner of Unit 2 Foundry Industrial Estate, Victoria Street and approximately 533 metres east of the most south-easterly corner of 17 Batherton Close, then proceeding in a generally east-north-easterly direction for approximately 240 metres to a point approximately 606 metres east of the most northerly corner of Unit 4 Foundry Industrial Estate, Victoria Street and approximately 23 metres south of the most south westerly corner of the boundary fencing of the scrap metal yard on the south side of Cornubia Road, Widnes, then proceeding in a generally northern direction for approximately 44 metres to a point approximately 3 metres west-north-west of the most north westerly corner of the boundary fence of the scrap metal yard on the south side of Cornubia Road and approximately 47 metres west-south-west of the stub end of Cornubia Road.’'In the event that the Purchaser defaults in the payment of any instalment of purchase price, taxes, insurance, interest, or the annual charge described elsewhere herein, or shall default in the performance of any other obligations set forth in this Contract, the Seller may: at his option: (a) Declare immediately due and payable the entire unpaid balance of purchase price, with accrued interest, taxes, and annual charge, and demand full payment thereof, and enforce conveyance of the land by termination of the contract or according to the terms hereof, in which case the Purchaser shall also be liable to the Seller for reasonable attorney's fees for services rendered by any attorney on behalf of the Seller, or (b) sell said land and premises or any part thereof at public auction, in such manner, at such time and place, upon such terms and conditions, and upon such public notice as the Seller may deem best for the interest of all concerned, consisting of advertisement in a newspaper of general circulation in the county or city in which the security property is located at least once a week for Three (3) successive weeks or for such period as applicable law may require and, in case of default of any purchaser, to re-sell with such postponement of sale or resale and upon such public notice thereof as the Seller may determine, and upon compliance by the Purchaser with the terms of sale, and upon judicial approval as may be required by law, convey said land and premises in fee simple to and at the cost of the Purchaser, who shall not be liable to see to the application of the purchase money; and from the proceeds of the sale: First to pay all proper costs and charges, including but not limited to court costs, advertising expenses, auctioneer's allowance, the expenses, if any required to correct any irregularity in the title, premium for Seller's bond, auditor's fee, attorney's fee, and all other expenses of sale occurred in and about the protection and execution of this contract, and all moneys advanced for taxes, assessments, insurance, and with interest thereon as provided herein, and all taxes due upon said land and premises at time of sale, and to retain as compensation a commission of five percent (5%) on the amount of said sale or sales; SECOND, to pay the whole amount then remaining unpaid of the principal of said contract, and interest thereon to date of payment, whether the same shall be due or not, it being understood and agreed that upon such sale before maturity of the contract the balance thereof shall be immediately due and payable; THIRD, to pay liens of record against the security property according to their priority of lien and to the extent that funds remaining in the hands of the Seller are available; and LAST, to pay the remainder of said proceeds, if any, to the vendor, his heirs, personals representatives, successors or assigns upon the delivery and surrender to the vendee of possession of the land and premises, less costs and excess of obtaining possession.' YOU FUCKER SHUT UP
2024-12-08 10:43:21
im gonna fuck and rape you niggers and turn your tight little asses into a bloody mess tomorrow chewsday innit fucking cucks. i hope your father and mother died in the 9/11 attack on 2001 september 11th at 9:46 PM GMT+9 fucking dirty black bucks stupid apes who eat chicken, devour melon, play basketball. pick cotton and cant swim. A man walks into the office of a well-known talent agent and says, “Sir, have I got an act for you.” The agent, having seen it all in his 40 years in the business, looks doubtful, but indicates that the man should go on. “Well, sir,” the man says, “it’s a family act.” The agent roll his eyes, but before he can respond, the man jumps right in. “First,” he says, “I come out on the stage and accompanied by an old-time piano rag, do a bit of soft-shoe dance. My wife joins me, and I take her by the hand. Then I bend her over, lift up her ________ (article of clothing) and tear off her __________(article of clothing). Next, I whip out my _____________ (body part) and start to ____________ (verb) her. As she’s___________ (verb ending in ‘ing’) with pleasure, my son comes onstage and pulls out his little _______ (body part), which my wife starts to ________(verb). After a moment, our daughter enters from the left, kneels down and starts licking the boy’s______ (body part). Overcome with pleasure, he_____________ (verb ending in ‘S’), and some lands on our daughter’s _______ (body part). All the while, the music is playing, becoming more and more dramatic. Then the baby crawls onstage, in her adorable footie pajamas and start to eat the ___________ (bodily waste) right off her sister’s _________ (body part). The baby____________ (verb ending in ‘s’), and my daughter slips in the ensuing puddle. Her face gets caught in the boy’s________, (body part) and my wife, still ___________ (verb ending in ‘ing’) away on his _________, (body part) tries to pull the two of them apart. Off balance, she slips and lands face-first in the steaming pile of ________ (noun). The motion of her popping off my_______(Body part), along with the music rising to a mighty crescendo, causes me to _________(verb) all over them, while they slip and slide in the ________(noun) which by now is now covering the stage. Just at that moment, a container of confetti opens up in the rafter, and my entire family gets up and leaps on top of my shoulders, fanning out like the petals of a flower, with the baby perched on top.” “Finally,” the man says, “when we’re all completely covered in __________ (noun), __________ (bodily fluid) and confetti, we throw our hands in the air: Ta-da!” The agent, stunned, pauses for what seems like an eternity before saying, “Jesus, that’s a hell of an act. What do you call it?” The man, rubbing his fingernails on the lapel of his natty, pinstriped coat, lifts his nose to the air and says, in his most sophisticated voice, “We call ourselves…The Aristocrats
2024-10-12 14:09:26
;)
2024-05-13 04:03:10
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int a, b;

cin >> a;
cin >> b;
while (a > 0 && b > 0) {
if (a > b) {
cout << b;
cout << " ";
cout << (double) a / b << endl;
a = a % b;
} else {
cout << a;
cout << " ";
cout << (double) b / a << endl;
b = b % a;
}
}
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2024-05-06 05:19:04
UNDRAM X TSELMEG
2024-05-06 05:15:41
BI GEGEED HAIRTAI GEGEEG HARAH BURD SETGEL HUDUDLDUG BAS BI GEGEETEE HMT HONOJ BAINA GJ ZUUDELSEN
2024-05-06 05:15:41
.


Last edit: 2024-05-06 05:15:54
2024-05-06 05:14:45
MUNJIII
2024-05-06 05:14:29
TSETSE ZAILAA

Last edit: 2024-05-06 05:16:18
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.