by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Andrew Pham
    @andrewphamvk
    Andrew
    Andrew
    #Andrew
    Potato
    This text will be italic
    This text will be bold
    andrew
    andrew**
    Everyone must attend the meeting at 5 o'clock today.
    • Item
    • Item 2
    -andrew
    -andrew
    -sdgfd
    • andrew
    1. Item 1 2. Item 2g dfg
    1. Item 1
    1. Item 1
    2. Item 2
    1. Item 1
      1. Test
        1. Hello world
    andrew
    Here's an idea: why don't we take SuperiorProject and turn it into **Reasonable**Project.
    asdfjsldf
    x = 0
    x = 2 + 2
    x = 12
    Andrew Pham
    @andrewphamvk
    var x;
    x = 2 + 2;
    var x = new int[];
    wow_great_stuff
    hello
    Mistaken text.
    asgdf
    asdf
    asdfs
    var x = 0;
    x = 12 + 2;
    Here's an example:
    function test() {
      console.log("notice the blank line before this function?");
    }
    function test() {
      console.log("notice the blank line before this function?");
    }
    Here's an example:
    function test() {
      console.log("notice the blank line before this function?");
    }
    Here's an example:
    function test() {
      console.log("notice the blank line before this function?");
    }
    Andrew Pham
    @andrewphamvk
    :point_up: March 8 2015 2:05 PM dfgdfgd
    require 'redcarpet'
    markdown = Redcarpet.new("Hello World!")
    puts markdown.to_html
    ```c#
    public class Foo 
    {
      private static readonly string animals = "andrew";
      public static Foo()
      {
      }
    }
    public class Foo 
    {
      private static readonly string animals = "andrew";
      public static Foo()
      {
      }
    }
    First Header Second Header
    Content Cell Content Cell
    Content Cell Content Cell
    First Header Second Header
    Content Cell Content Cell
    Content Cell Content Cell
    Left-Aligned Center Aligned Right Aligned
    col 3 is some wordy text $1600
    col 2 is centered $12
    zebra stripes are neat $1
    • [x] @mentions, #refs, links, formatting, and <del>tags</del> are supported
    • [x] list syntax is required (any unordered or ordered list supported)
    • [x] this is a complete item
    • [ ] this is an incomplete item
    devpahuja
    @devpahuja

    include <bits/stdc++.h>

    using namespace std;

    int main() {
    int n,sum,i,j,t; cin>>t;
    while(t--){
    cin>>sum>>n; int a[n];
    int x[100005]={0};
    vector<int> s(sum+1,1000000);
    for(i=0;i<n;i++){cin>>a[i]; x[a[i]]++;}

    for(i=1;i<=sum;i++){
    int min=1000000;
    if(x[i]){s[i]=1; continue;}
    for(j=1;j<=i/2;j++){
    if(s[j]+s[i-j]<min) min=s[j]+s[i-j]; } s[i]=min; } if(sum==0) cout<<0<<endl; else if(s[sum]>105)
    cout<<"No solution\n";
    else cout<<s[sum]<<endl;
    }
    return 0;
    }

    can anyone plz help me out in this ques.. http://www.spoj.com/problems/EINST/
    Im getting wrng answer.