<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _500
{
    class Program
    {
        static void Main(string[] args)
        {
            BirthdayOdds x = new BirthdayOdds();
            Console.WriteLine(x.minPeople(99, 2));
            Console.ReadLine();
        }
    }

    public class BirthdayOdds
    {
        public int minPeople(int minOdds, int daysInYear)
        {
            double percen = 100.0 - (double)minOdds;
            int res = 0;
            for (int i = daysInYear; i > 0; i--)
            {
                double temp = 100.0;
                for (int a = daysInYear; a >= i; a--)
                    temp *= (double)a / (double)daysInYear;
                if (temp <= percen)
                {
                    res = daysInYear - i + 1;
                    break;
                }
            }
            if (res == 0)
                return daysInYear + 1;
            return res;
        }
    }
}<commit_msg>new problem added<commit_after>﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Text.RegularExpressions;

namespace _500
{
    class Program
    {
        static void Main(string[] args)
        {
            BirthdayOdds x = new BirthdayOdds();
            Console.WriteLine(x.minPeople(75, 5));
            Console.ReadLine();
        }
    }

    public class BirthdayOdds
    {
        public int minPeople(int minOdds, int daysInYear)
        {
            int result = 0;
            double days = (double)daysInYear;
            for (int i = 1; i < 1000; i++)
            {
                double res = 1.0;
                double x = (double)daysInYear;
                for (int a = 0; a < i; a++)
                {
                    res *= x / days;
                    x--;
                }
                res *= 100.0;
                double temp = 100.0 - res;
                if (temp > minOdds)
                {
                    result = i;
                    break;
                }
            }
            return result;
        }
    }
}
{'fraction_non_alphanumeric': 0.09662505779010633, 'fraction_numerical': 0.019417475728155338, 'mean_word_length': 1.111219512195122, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7635593', 'n_tokens_mistral': 656, 'n_tokens_neox': 592, 'n_words': 157}