Хулиганы первый и второй не любят доску почёта своей школы. поэтому они решили наглым образом украсть оттуда школьную стенгазету, сделанную отличниками, и порвать на части. первый хулиган брал кусочек газеты и рвал его на 4 части, а второй хулиган – на 7. однако скоро дежурные нашли n кусочков этой газеты. им стало интересно, все ли кусочки они нашли. им.
дежурные так старались, что упустить из виду они могли не более 2 кусочков.
входные данные
натуральное число n < 1018.
выходные данные
выведите “yes”, если все кусочки найдены, и “no” – в противном случае.
#include
using namespace std;
int main()
{
int n, b = 3, x;
cin > > n;
x = n - 1;
if (x % 3 == 0)
cout < < "yes" < < endl;
else
cout < < "no" < < endl;
return 0;
}
в душе не чаю, почему валится на 6 контесте. (:
друзья саша и паша живут на одной улице. как то раз они договорились порешать открытой московской олимпиады у паши, который живет в доме, находящимся на расстоянии a от начала улицы. саша некоторое время назад вышел к своему другу и на расстоянии b от начала улицы он оглянулся по сторонам и понял, что дом паши где-то рядом. теперь его скорость равна v.
определите, сколько еще времени потребуется саше, чтобы дойти до дома своего друга.
входные данные
неотрицательные целые числа a, b, v(v≠0).
выходные данные
выведите ответ на с точностью с 5 знаками после запятой
а тут чет туплю
am Zhilin Andrey. Andrey is my name and Zhilin is my surname. I am seventeen years old. I want to tell you a few words about my family. My family is not large. I have got mother, father and grandmother. There are four of us in the family.
First of all some words about my parents. My mother is a teacher of biology. She works in a school. She likes her profession. She is a good-looking woman with brown hair. She is 44 but she looks much younger.
My father is programmer. He is forty-six. My father often sings and when we are at home and have some free time I play guitar and we sing together. He is also handy with many things. When he was small he liked to take everything to pieces. My grandmother told me a story that once my father tried to repair their kitchen clock but without success. They had to give it to a repairman. But it happened a long time ago. Now he can fix almost everything.
My parents have been married for 18 years. They have much in common, but they have different views on music, books, and films. For example my father likes horror films and my mother likes soap operas. My father is fond of tennis. My mother doesn't go in for sports.
My parents are hard working people. My mother keeps house and takes care of my father and me. She is very good at cooking. My grandmother is a pensioner. She lives with us and helps to run the house. She is fond of knitting.
I want to become a student. I'd like to learn foreign languages. I always try to be in a good mood.
We have got a lot of relatives.