#AsuultSambar :

ASUULT.NET - МОНГОЛ УЛС МАНДАН БАДРАГ!
It is currently Jul.23.18 7:43 am

All times are UTC+09:00




Post new topic  Reply to topic  [ 422 posts ]  Go to page Previous 113 14 15 16 17
Author Message
PostPosted: Oct.16.10 6:29 pm 
Offline
Партизан Гишvvн
Партизан Гишvvн

Joined: Jul.22.09 9:05 pm
Posts: 324
Location: chinii zurh setgeld
On a sunny Sunday, a group of children headed by their teacher came to an amusement park. Aunt Frosya, who was a very kind and quiet person, worked at the ticket window on that day. The teacher gave her the money but didn't say how many tickets she wanted to buy. Could Aunt Frosya determine it knowing only the numbers of different notes the teacher gave? It is assumed that the teacher didn't give extra notes, which means that there would not be enough money for the tickets if any of the notes was taken away.
Input
The first line contains six nonnegative integers separated with a space; these are the numbers of 10, 50, 100, 500, 1000, and 5000 rouble notes the teacher gave to Aunt Frosya. In the second line you are given the price of one ticket; it is a positive integer. All the integers in the input data do not exceed 1000.
Output
Find the number of tickets the teacher wanted to buy. Output the number of possible answers in the first line. The variants in ascending order separated with a space must be given in the second line. It is guaranteed that there is at least one variant of the answer.
Samples
input
0 2 0 0 0 0
10

output
5
6 7 8 9 10




ene bodlogiig gyls bodoog og teho

_________________
Your Dream iS My Live


Top
   
PostPosted: Jan.09.11 5:31 pm 
Offline
Жирийн Нэгэн Гишvvн
Жирийн Нэгэн Гишvvн
User avatar

Joined: Dec.22.10 2:54 am
Posts: 14
oirdoo yamar negen online temtseen baina uu hymyysee? sonirhoj yzeh gesiin? :)


Top
   
PostPosted: Jan.10.11 11:29 am 
Offline
Тvмнээс Төгөлдөр Гишvvн
Тvмнээс Төгөлдөр Гишvvн
User avatar

Joined: Aug.07.09 10:51 am
Posts: 120
Location: Энэ л ертөнцөд
akuna000 wrote:
oirdoo yamar negen online temtseen baina uu ymyysee? sonirhoj yzeh gesiin? :)

http://www.spoj.pl/CSMS/ дээр олимпиадын бодлогууд байдгийн. Бараг чи мэдэх байх. Уул нь энд online тэмцээн болдог байсын больцон юм шиг байна. Бас train.usaco.org/ дээр улирал болгон зохиогддог юм байна лээ. Би орж үзээгүй.

_________________
Дандаа


Top
   
PostPosted: Jan.12.11 8:34 pm 
Offline
Жирийн Нэгэн Гишvvн
Жирийн Нэгэн Гишvvн
User avatar

Joined: Dec.22.10 2:54 am
Posts: 14
ok. thanks O.O. bi bas neg site ru orj yzle. zarim ni medeh baih. medehgyi ni medeed avna biz :)

http://www.coder.mn gej dajgyi l yum baina. Online temtseen ni eheltsen yavj baigaa.


Top
   
PostPosted: Dec.16.12 9:11 pm 
Offline
Yзэсгэлэнт Гишvvн
Yзэсгэлэнт Гишvvн
User avatar

Joined: Jul.10.12 6:29 pm
Posts: 338
...

Sent from my SHW-M110S using AsuultSambar mobile app

_________________
www.kinobox.co цахим кино театер


Top
   
PostPosted: Jun.24.13 11:03 am 
Offline
Ноёлон Ноёрхогч Гишvvн
Ноёлон Ноёрхогч Гишvvн

Joined: Feb.04.05 9:44 pm
Posts: 1096
...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 422 posts ]  Go to page Previous 113 14 15 16 17

All times are UTC+09:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Copyright Asuult.NET © 2000-2015.
Administrative Contact: Khundaga Khurelbaatar [hundaga@hotmail.com]
Tel: 1-888-303-4927, Fax: 1-888-406-2264.
Powered by phpBB © 2000-2015 phpBB Group. Powered by phpBB® Forum Software © phpBB Limited