Школа программиста

Забыли пароль?
[задачи] [курсы] [олимпиады] [регистрация]
Логин:   Пароль:    
Скрыть меню
О школе
Правила
Олимпиады
Фотоальбом
Гостевая
Форум
Архив олимпиад
Архив задач
Состояние системы
Рейтинг
Курсы
Новичкам
Работа в системе
Курсы ККДП
Дистрибутивы
Статьи
Ссылки


 
[Вернуться к задаче]   1
  1  Асоев Нуриддин, 10 марта 2026 г. 12:16:47
     #include <iostream> using namespace std; int main() { int n; cin >> n; cout << "The next number for the number " << n << " is " << n + 1 << "." << endl; cout << "The previous number for the number " << n << " is " << n - 1 << "." << endl; return 0; }
  2  Печенькова Полина Андреевна, 07 февраля 2026 г. 22:29:14
     #include <iostream> using namespace std; long long k; int main() { cin >> k; cout << "The next number for the " << k << " is " << k+1 << "." << endl;cout << "The previous number for the " << k << " is " << k-1 << "." << endl; } почему не засчитывает(
  3  Печенькова Полина Андреевна, 07 февраля 2026 г. 22:28:32
     #include <iostream> using namespace std; long long k; int main() { почему не засчитывает( cin >> k; cout << "The next number for the " << k << " is " << k+1 << "." << endl;cout << "The previous number for the " << k << " is " << k-1 << "." << endl; }
  4  Печенькова Полина Андреевна, 07 февраля 2026 г. 22:26:59
     #include <iostream> using namespace std; long long k; int main() { cin >> k; cout << "The next number for the " << k << " is " << k+1 << "." << endl;cout << "The previous number for the " << k << " is " << k-1 << "." << endl; }
  5  Иусов Илья Юрьевич, 02 февраля 2026 г. 16:24:19
     a = int(input()) print(f"The next number for the number {a} is {a+1}."f"\nThe previous number for the number {a} is {a-1}.") Если просто, то так
  6  Лейбниц Готфрид Вильгельм, 22 января 2026 г. 18:22:38
     #include <iostream> int main() { int a; std::cin >> a; std::cout << "The next number for the number " << a << " is " << a + 1 << "." << std::endl; std::cout << "The previous number for the number " << a << " is " << a - 1 << "."; }
  7  Анучин Адриан Алексеевич, 20 ноября 2025 г. 17:52:20
     a = int(input()) print(f"The next number for the number {a} is {a+1}.") print(f"The previous number for the number {a} is {a-1}.")
  8  СЕНОЖАЦКИЙ АЛЕКСЕЙ АРКАДЬЕВИЧ, 18 ноября 2025 г. 8:44:52
     Я ваш Бог... код на Python: n=int(input()) s=str(n+1) p=str(n-1) print('The next number for the number '+str(n)+' is '+s+'.') print('The previous number for the number '+str(n)+' is '+p+'.')
  9  СЕНОЖАЦКИЙ АЛЕКСЕЙ АРКАДЬЕВИЧ, 18 ноября 2025 г. 8:38:41
     Ошибка, но я её решил
  10  Мигалкин Алексей Артемович, 04 октября 2025 г. 15:55:12
     #include <iostream> using namespace std; int n; int main() { cin >> n; cout << "The next number for the number " << n << " is " << n+1 << "."<< endl; cout << "The previous number for the number " << n << " is " << n-1 << "."; return 0; }
  11  Неизвестный, 01 апреля 2025 г. 18:38:39
     #include <iostream> using namespace std; int main(){ int a; cin >> a; cout << "The next number for the " << a << " is " << a + 1 << endl; cout << "The previous number for the number " << a << " is " << a - 1; }
  12  Шамисев Муким Нарзуллоевич, 11 марта 2025 г. 3:28:49
     #include <iostream> using namespace std; main() { int a; cin>>a; cout<<"The next number for the number " <<a<<" is "<<a+1<<"."<< endl; cout<<"The previous number for the number "<<a<<" is "<<a-1<<"."; }
  13  Чернюк Анна, 16 декабря 2024 г. 11:08:30
     я сама не могу решить
  14  Комшабаева Арайлым Бексейткызы, 02 декабря 2024 г. 21:37:09
     a=int(input()) print("The next number for the number ",a," is ",a+1,".",sep="") print("The previous number for the number ",a," is ",a-1,".",sep="")
  15  Неизвестный, 04 ноября 2024 г. 20:25:03
     кто нибудь если читает этот предложение пожалуйста тот кто решил эту задачу отправьте решение пожалуйста
 1

Чтобы оставить сообщение необходимо зарегистрироваться и авторизоваться!

Красноярский краевой Дворец пионеров, (c)2006 - 2026, ИНН 246305493507, E-mail: admin@acmp.ru



в этом видеопродакшн. Видеоролики кинотеатров конвертация в DCP