GithubHelp home page GithubHelp logo

yandex-ml-contest-'s Introduction

Yandex-ML-contest-

A. Генератор точек в круге

Ограничение времени 1 секунда Ограничение памяти 64Mb

Ввод стандартный ввод или input.txt Вывод стандартный вывод или output.txt Петя написал два генератора точек в круге:

def generate1():
a = uniform(0, 1)
b = uniform(0, 1)
return (a * cos(2 * pi * b), a * sin(2 * pi * b))

def generate2():
while True:
x = uniform(-1, 1)
y = uniform(-1, 1)
if x ** 2 + y ** 2 > 1:
continue
return (x, y)

Даны 100 наборов по 1000 точек, каждый набор сгенерирован каким-то одним из этих двух алгоритмов. Необходимо определить для каждого набора, первый или второй алгоритм использовался для его генерации.

Для того, чтобы получить ОК по этой задаче, надо предсказать правильный генератор хотя бы для 98 наборов.

Формат ввода Даны 100 строк. Каждая строка отвечает за свой набор точек.

В каждой строке находится 2000 действительных чисел (−1≤ai≤1), разделённых пробелом. Точки идут подряд, то есть формат строки: x0 y0 x1 y1 x2 y2 … x999 y999 Формат вывода Нужно вывести 100 строк, в каждой из которой должно быть 1 число: 1 или 2, в зависимости от того, первым или вторым генератором был сгенерирован данный набор точек.

yandex-ml-contest-'s People

Contributors

andreascoclet avatar deepsource-io[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.