Количество ломаных

mail@pastecode.io avatar
unknown
plain_text
2 years ago
16 kB
3
Indexable
Never
количество ломаных 

"checks": {
    "1": {
      "sources": [
        {
          "source": {
            "type": "POLYLINE_SET"
          },
          "type": "SIZE"
        },
        {
          "source": 1,
          "type": "NUMBER"
        }
      ],
      "type": "EQUAL"
    }
  }

количество ломаных из конкретного множества

 "checks": {
    "1": {
      "sources": [
        {
          "sources": [
            {
              "source": {
                "sources": [
                  {
                    "sources": [
                      {
                        "source": "i1",
                        "type": "STRING"
                      },
                      {
                        "source": "i5",
                        "type": "STRING"
                      },
                      {
                        "source": "i2",
                        "type": "STRING"
                      },
                      {
                        "source": "i6",
                        "type": "STRING"
                      },
                      {
                        "source": "i3",
                        "type": "STRING"
                      },
                      {
                        "source": "i7",
                        "type": "STRING"
                      },
                      {
                        "source": "i4",
                        "type": "STRING"
                      },
                      {
                        "source": "i8",
                        "type": "STRING"
                      }
                    ],
                    "type": "UNION"
                  },
                  {
                    "sources": [
                      {
                        "sources": [
                          {
                            "type": "POLYLINE_SET"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "FLAT"
                  }
                ],
                "type": "INTERSECT"
              },
              "type": "SIZE"
            },
            {
              "source": 2,
              "type": "NUMBER"
            }
          ],
          "type": "EQUAL"
        },
        {
          "sources": [
            {
              "sources": [
                {
                  "source": {
                    "sources": [
                      {
                        "sources": [
                          {
                            "source": "i10",
                            "type": "STRING"
                          },
                          {
                            "source": "i12",
                            "type": "STRING"
                          },
                          {
                            "source": "i14",
                            "type": "STRING"
                          },
                          {
                            "source": "i16",
                            "type": "STRING"
                          }
                        ],
                        "type": "UNION"
                      },
                      {
                        "sources": [
                          {
                            "sources": [
                              {
                                "type": "POLYLINE_SET"
                              }
                            ],
                            "type": "FLAT"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "INTERSECT"
                  },
                  "type": "SIZE"
                },
                {
                  "source": 4,
                  "type": "NUMBER"
                }
              ],
              "type": "EQUAL"
            },
            {
              "sources": [
                {
                  "source": {
                    "sources": [
                      {
                        "sources": [
                          {
                            "source": "i9",
                            "type": "STRING"
                          },
                          {
                            "source": "i11",
                            "type": "STRING"
                          },
                          {
                            "source": "i13",
                            "type": "STRING"
                          },
                          {
                            "source": "i15",
                            "type": "STRING"
                          }
                        ],
                        "type": "UNION"
                      },
                      {
                        "sources": [
                          {
                            "sources": [
                              {
                                "type": "POLYLINE_SET"
                              }
                            ],
                            "type": "FLAT"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "INTERSECT"
                  },
                  "type": "SIZE"
                },
                {
                  "source": 4,
                  "type": "NUMBER"
                }
              ],
              "type": "EQUAL"
            }
          ],
          "type": "OR"
        },
        {
          "sources": [
            {
              "source": {
                "sources": [
                  {
                    "sources": [
                      {
                        "source": "i17",
                        "type": "STRING"
                      },
                      {
                        "source": "i18",
                        "type": "STRING"
                      },
                      {
                        "source": "i19",
                        "type": "STRING"
                      },
                      {
                        "source": "i20",
                        "type": "STRING"
                      },
                      {
                        "source": "i21",
                        "type": "STRING"
                      },
                      {
                        "source": "i22",
                        "type": "STRING"
                      },
                      {
                        "source": "i23",
                        "type": "STRING"
                      },
                      {
                        "source": "i24",
                        "type": "STRING"
                      }
                    ],
                    "type": "UNION"
                  },
                  {
                    "sources": [
                      {
                        "sources": [
                          {
                            "type": "POLYLINE_SET"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "FLAT"
                  }
                ],
                "type": "INTERSECT"
              },
              "type": "SIZE"
            },
            {
              "source": 8,
              "type": "NUMBER"
            }
          ],
          "type": "EQUAL"
        }
      ],
      "type": "AND"
    }
  },

  "hints": [
    {
        "marker_id": 1,
        "hints": [
            {
                "text": "Проверь себя в пункте а). Доли — это {br}равные части. Поделить на 2 доли — значит {br}поделить пиццу на 2 равные части.",
                "check": {"source": {
          "sources": [
            {
              "source": {
                "sources": [
                  {
                    "sources": [
                      {
                        "source": "i1",
                        "type": "STRING"
                      },
                      {
                        "source": "i5",
                        "type": "STRING"
                      },
                      {
                        "source": "i2",
                        "type": "STRING"
                      },
                      {
                        "source": "i6",
                        "type": "STRING"
                      },
                      {
                        "source": "i3",
                        "type": "STRING"
                      },
                      {
                        "source": "i7",
                        "type": "STRING"
                      },
                      {
                        "source": "i4",
                        "type": "STRING"
                      },
                      {
                        "source": "i8",
                        "type": "STRING"
                      }
                    ],
                    "type": "UNION"
                  },
                  {
                    "sources": [
                      {
                        "sources": [
                          {
                            "type": "POLYLINE_SET"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "FLAT"
                  }
                ],
                "type": "INTERSECT"
              },
              "type": "SIZE"
            },
            {
              "source": 2,
              "type": "NUMBER"
            }
          ],
          "type": "EQUAL"}, "type":"NOT"
        } 
            },
            {
                "text": "Проверь себя в пункте б). Доли — это {br}равные части. Поделить на 4 доли — значит {br}поделить пиццу на 4 равные части.",
                "check": {"source": {
          "sources": [
            {
              "sources": [
                {
                  "source": {
                    "sources": [
                      {
                        "sources": [
                          {
                            "source": "i10",
                            "type": "STRING"
                          },
                          {
                            "source": "i12",
                            "type": "STRING"
                          },
                          {
                            "source": "i14",
                            "type": "STRING"
                          },
                          {
                            "source": "i16",
                            "type": "STRING"
                          }
                        ],
                        "type": "UNION"
                      },
                      {
                        "sources": [
                          {
                            "sources": [
                              {
                                "type": "POLYLINE_SET"
                              }
                            ],
                            "type": "FLAT"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "INTERSECT"
                  },
                  "type": "SIZE"
                },
                {
                  "source": 4,
                  "type": "NUMBER"
                }
              ],
              "type": "EQUAL"
            },
            {
              "sources": [
                {
                  "source": {
                    "sources": [
                      {
                        "sources": [
                          {
                            "source": "i9",
                            "type": "STRING"
                          },
                          {
                            "source": "i11",
                            "type": "STRING"
                          },
                          {
                            "source": "i13",
                            "type": "STRING"
                          },
                          {
                            "source": "i15",
                            "type": "STRING"
                          }
                        ],
                        "type": "UNION"
                      },
                      {
                        "sources": [
                          {
                            "sources": [
                              {
                                "type": "POLYLINE_SET"
                              }
                            ],
                            "type": "FLAT"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "INTERSECT"
                  },
                  "type": "SIZE"
                },
                {
                  "source": 4,
                  "type": "NUMBER"
                }
              ],
              "type": "EQUAL"
            }
          ],
          "type": "OR"
        },
                          "type":"NOT"} 
            },
            {
                "text": "Проверь себя в пункте в). Доли — это {br}равные части. Поделить на 8 долей — значит {br}поделить пиццу на 8 равных частей.",
                "check": {"source": {
          "sources": [
            {
              "source": {
                "sources": [
                  {
                    "sources": [
                      {
                        "source": "i17",
                        "type": "STRING"
                      },
                      {
                        "source": "i18",
                        "type": "STRING"
                      },
                      {
                        "source": "i19",
                        "type": "STRING"
                      },
                      {
                        "source": "i20",
                        "type": "STRING"
                      },
                      {
                        "source": "i21",
                        "type": "STRING"
                      },
                      {
                        "source": "i22",
                        "type": "STRING"
                      },
                      {
                        "source": "i23",
                        "type": "STRING"
                      },
                      {
                        "source": "i24",
                        "type": "STRING"
                      }
                    ],
                    "type": "UNION"
                  },
                  {
                    "sources": [
                      {
                        "sources": [
                          {
                            "type": "POLYLINE_SET"
                          }
                        ],
                        "type": "FLAT"
                      }
                    ],
                    "type": "FLAT"
                  }
                ],
                "type": "INTERSECT"
              },
              "type": "SIZE"
            },
            {
              "source": 8,
              "type": "NUMBER"
            }
          ],
          "type": "EQUAL"
        },
                          "type":"NOT"} 
            }
        ]
    }
]