М
Молодежь
К
Компьютеры-и-электроника
Д
Дом-и-сад
С
Стиль-и-уход-за-собой
П
Праздники-и-традиции
Т
Транспорт
П
Путешествия
С
Семейная-жизнь
Ф
Философия-и-религия
Б
Без категории
М
Мир-работы
Х
Хобби-и-рукоделие
И
Искусство-и-развлечения
В
Взаимоотношения
З
Здоровье
К
Кулинария-и-гостеприимство
Ф
Финансы-и-бизнес
П
Питомцы-и-животные
О
Образование
О
Образование-и-коммуникации
Nastya21724
Nastya21724
07.01.2022 04:38 •  Информатика

Пора нам подумать о зиме,-сказал как-то наф-наф своим братьям,проснувшись рано утром. я вест дрожу от холода. мы можем простудиться. давайте построим дом и будем зимовать вместе под одной крышей. заполни таблицу ; кто кем зачем

👇
Ответ:
alexandrustino1
alexandrustino1
07.01.2022
1. Наф-наф . 2. Братьями . 3. чтобы не замёрзнуть .
4,4(99 оценок)
Открыть все ответы
Ответ:
ЗАЙКА200515
ЗАЙКА200515
07.01.2022

import java.util.Scanner;

public class Main {

  static int col=0;

   public static void main(String[] args) {

       Container c1 =new Container(10,4,2.5);

       v2(c1);

       System.out.println(col);

   }

   static void v2(Container container) {

       System.out.println("Ведите размеры авто");

       Scanner scanner = new Scanner(System.in);

       double l= scanner.nextInt();

       double h=scanner.nextInt();;

       double w=scanner.nextInt();;

       Car car = new Car(l,h,w);

       if (container.hashCode() >= car.hashCode()) {

           container.widht = container.widht - car.widht;

           container.height= container.height - car.height;

           container.leng = container.leng - car.leng;

            col++;

            v2(container);

           }

   }

}

public class Car {

    final double leng;

    final double height;

    final double widht;

   Car(double leng,double height,double widht){

       this.leng=leng;

       this.height=height;

       this.widht=widht;

   }

   @Override

   public int hashCode() {

       return (int) (leng+height+widht);

   }

}

public class Container {

    static double leng;

    static double height;

    static double widht;

   Container(double leng,double height,double widht){

       this.leng=leng;

       this.height=height;

       this.widht=widht;

   }

   @Override

   public int hashCode() {

       return (int) (leng+height+widht);

   }

}

4,5(72 оценок)
Ответ:
summercik2009oziid6
summercik2009oziid6
07.01.2022
Var
A,B,C:integer;
Begin
C:=365;
Read(A,B);
if A>1 then C:=C-31;
if A=1 then C:=C-B;
if A>2 then C:=C-28;
if A=2 then C:=C-B;
if A>3 then C:=C-31;
if A=3 then C:=C-B;
if A>4 then C:=C-30;
if A=4 then C:=C-B;
if A>5 then C:=C-31;
if A=5 then C:=C-B;
if A>6 then C:=C-30;
if A=6 then C:=C-B;
if A>7 then C:=C-31;
if A=7 then C:=C-B;
if A>8 then C:=C-31;
if A=8 then C:=C-B;
if A>9 then C:=C-30;
if A=9 then C:=C-B;
if A>10 then C:=C-31;
if A=10 then C:=C-B;
if A>11 then C:=C-30;
if A=11 then C:=C-B;
if A>12 then C:=C-31;
if A=12 then C:=C-B;
Write(C);
End.
4,5(18 оценок)
Это интересно:
Новые ответы от MOGZ: Информатика
logo
Вход Регистрация
Что ты хочешь узнать?
Спроси Mozg
Открыть лучший ответ