use std::cmp;
use std::cmp::Ordering;
use std::fmt::Debug;
#[allow(unused_imports)]
use std::fs::File;
#[allow(unused_imports)]
use std::io::{stdin, stdout, BufReader, BufWriter, Read, Write};
use std::str::FromStr;

pub fn start<R: Read, W: Write>(input: R, output: &mut W) {
    let mut scanner = Scanner::new(input.bytes().map(Result::unwrap));
    let d = scanner.next_value::<usize>();
    let g = scanner.next_value::<usize>() / 100;
    let arr = scanner
        .next_2darray::<usize>(2, d)
        .iter()
        .map(move |x| [x[0] as i16, (x[1] / 100) as i16])
        .collect::<Vec<_>>();

    // dpテーブルの容量は、2MB
    // 計算量は最大で 2*10^7程度なのでDPでいく
    // 漸化式
    // i番目までで j * 100 点以上とする
    // dp[i][0] = 0
    // dp[0][j] = 32767
    // dp[i + 1][j] = min { dp[i][j], dp[i][j - k * (i + 1)] + k | k < arr[i][0], dp[i][j - arr[i][0] * (i + 1) - arr[i][1]] + arr[i][0] }
    // 枝刈り dp[i][j] = 32767 ならば dp[i][j + 1] = 32767

    let mut dp = vec![vec![i16::max_value(); g + 1]; d + 1];
    dp[0][0] = 0;
    fn sub0(a: usize, b: usize) -> usize {
        if a < b {
            0
        } else {
            a - b
        }
    }
    fn add0(a: i16, b: i16) -> i16 {
        let r = a.wrapping_add(b);
        if r < 0 {
            i16::max_value()
        } else {
            r
        }
    }

    'outer: for i in 1..(d + 1) {
        dp[i][0] = 0;
        for j in 1..(g + 1) {
            dp[i][j] = cmp::min(
                (0..arr[i - 1][0])
                    .map(|k| add0(dp[i - 1][sub0(j, (k as usize) * i)], k))
                    .min()
                    .unwrap(),
                add0(
                    dp[i - 1][sub0(j, arr[i - 1][0] as usize * i + arr[i - 1][1] as usize)],
                    arr[i - 1][0],
                ),
            );
            if dp[i][j] == i16::max_value() {
                continue 'outer;
            }
        }
    }

    write!(output, "{}\n", dp.iter().map(|x| x[g]).min().unwrap()).unwrap();
}

#[cfg(test)]
mod test {
    use super::start;
    use std::io::Cursor;

    #[test]
    fn example1() {
        let input = b"2 700\n3 500\n5 800\n";
        let output = b"3\n";
        let mut out = Cursor::new(Vec::new());
        start(Cursor::new(input), &mut out);
        let outvec = out.into_inner();
        println!("{}", String::from_utf8((&outvec).to_vec()).unwrap());
        assert_eq!(outvec, output);
    }

    #[test]
    fn example2() {
        let input = b"2 2000\n3 500\n5 800\n";
        let output = b"7\n";
        let mut out = Cursor::new(Vec::new());
        start(Cursor::new(input), &mut out);
        let outvec = out.into_inner();
        println!("{}", String::from_utf8((&outvec).to_vec()).unwrap());
        assert_eq!(outvec, output);
    }

    #[test]
    fn example3() {
        let input = b"2 400\n3 500\n5 800\n";
        let output = b"2\n";
        let mut out = Cursor::new(Vec::new());
        start(Cursor::new(input), &mut out);
        let outvec = out.into_inner();
        println!("{}", String::from_utf8((&outvec).to_vec()).unwrap());
        assert_eq!(outvec, output);
    }

    #[test]
    fn example4() {
        let input = b"5 25000\n20 1000\n40 1000\n50 1000\n30 1000\n1 1000\n";
        let output = b"66\n";
        let mut out = Cursor::new(Vec::new());
        start(Cursor::new(input as &[u8]), &mut out);
        let outvec = out.into_inner();
        println!("{}", String::from_utf8((&outvec).to_vec()).unwrap());
        assert_eq!(outvec, output);
    }
}

////////////////////////////
// Snipetts
////////////////////////////

#[allow(dead_code)]
fn main() {
    let stdin = stdin();
    let stdout = stdout();
    let mut out = BufWriter::new(stdout.lock());
    let input = BufReader::new(stdin.lock());
    start(input, &mut out);
}

// // ファイルの場合
// #[allow(dead_code)]
// fn main() {
//     let mut out = BufWriter::new(File::create("output.txt").unwrap());
//     let input = BufReader::new(File::open("input.txt").unwrap());
//     start(input, &mut out);
// }

// 大きなスタックが必要な場合はこちらを利用する
// #[allow(dead_code)]
// fn main() {
//     std::thread::Builder::new()
//         .name("big stack size".into())
//         .stack_size(32 * 1024 * 1024) // 32 MBのスタックサイズ
//         .spawn(|| {
//             let stdin = stdin();
//             let stdout = stdout();
//             let out = BufWriter::new(stdout.lock());
//             let input = BufReader::new(stdin.lock());
//             start(input, out);
//         })
//         .unwrap()
//         .join()
//         .unwrap();
// }

pub struct Scanner<I: Iterator<Item = u8>> {
    input: I,
}

impl<I: Iterator<Item = u8>> Scanner<I> {
    pub fn new(input: I) -> Self {
        Scanner::<I> { input: input }
    }

    // 文字コードはISO/IEC 8859-1 (Latin-1)とする
    pub fn next_value<T: FromStr>(&mut self) -> T
    where
        <T as FromStr>::Err: Debug,
    {
        T::from_str(
            &(self
                .input
                .by_ref()
                .map(char::from)
                .skip_while(|x| x.is_whitespace())
                .take_while(|x| !x.is_whitespace())
                .collect::<String>()),
        )
        .unwrap()
    }

    // 文字コードはISO/IEC 8859-1 (Latin-1)とする
    #[allow(dead_code)]
    pub fn next_bytes(&mut self) -> Vec<u8> {
        self.input
            .by_ref()
            .skip_while(|&x| char::from(x).is_whitespace())
            .take_while(|&x| !char::from(x).is_whitespace())
            .collect::<Vec<_>>()
    }

    #[allow(dead_code)]
    pub fn next_array<T: FromStr>(&mut self, len: usize) -> Vec<T>
    where
        <T as FromStr>::Err: Debug,
    {
        (0..len).map(|_| self.next_value()).collect()
    }

    #[allow(dead_code)]
    pub fn next_2darray<T: FromStr>(&mut self, x: usize, y: usize) -> Vec<Vec<T>>
    where
        <T as FromStr>::Err: Debug,
    {
        (0..y).map(|_| self.next_array(x)).collect()
    }

    #[allow(dead_code)]
    pub fn next_2d_bytes(&mut self, len: usize) -> Vec<Vec<u8>> {
        (0..len).map(|_| self.next_bytes()).collect()
    }
}

// 1.15.1でReverseを使う
// https://qiita.com/hatoo@github/items/fa14ad36a1b568d14f3e
#[derive(Eq, PartialEq, Clone, Debug)]
pub struct Reverse<T>(pub T);

impl<T: PartialOrd> PartialOrd for Reverse<T> {
    fn partial_cmp(&self, other: &Reverse<T>) -> Option<Ordering> {
        other.0.partial_cmp(&self.0)
    }
}

impl<T: Ord> Ord for Reverse<T> {
    fn cmp(&self, other: &Reverse<T>) -> Ordering {
        other.0.cmp(&self.0)
    }
}

// PartialOrdをTotalOrdにするラッパ
// https://qiita.com/hatoo@github/items/fa14ad36a1b568d14f3e

#[derive(PartialEq, PartialOrd)]
pub struct Total<T>(pub T);

impl<T: PartialEq> Eq for Total<T> {}

impl<T: PartialOrd> Ord for Total<T> {
    fn cmp(&self, other: &Total<T>) -> Ordering {
        self.0.partial_cmp(&other.0).unwrap()
    }
}

// 順列生成
#[allow(dead_code)]
pub fn permutations(n: usize, k: usize) -> Box<Iterator<Item = Vec<u8>>> {
    fn inner(array: Vec<u8>, depth: usize, max: u8) -> Box<Iterator<Item = Vec<u8>>> {
        let na = (0..max).flat_map(move |x| {
            if array.contains(&x) {
                None
            } else {
                let mut newarray = array.clone();
                newarray.push(x);
                Some(newarray)
            }
        });
        if depth > 0 {
            Box::new(na.flat_map(move |x| inner(x, depth - 1, max)))
        } else {
            Box::new(na)
        }
    }
    inner(Vec::new(), k - 1, n as u8)
}

// 組み合わせ生成
#[allow(dead_code)]
pub fn combinations(n: usize, r: usize) -> Box<Iterator<Item = Vec<u8>>> {
    fn inner(
        array: Vec<u8>,
        depth: usize,
        min: usize,
        max: usize,
    ) -> Box<Iterator<Item = Vec<u8>>> {
        let na = (min..(max - depth)).map(move |x| {
            let mut newarray = array.clone();
            newarray.push(x as u8);
            newarray
        });
        if depth > 0 {
            Box::new(na.flat_map(move |x| {
                let next = usize::from(*x.last().unwrap()) + 1;
                inner(x, depth - 1, next, max)
            }))
        } else {
            Box::new(na)
        }
    }
    inner(Vec::new(), r - 1, 0, n)
}


Measured memory_bytes: 6396