SHARE
TWEET

Nudget Number

chaipat Mar 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2.  
  3. int main(){
  4.    
  5.     int data[200];
  6.     memset(data, 0, sizeof(data));
  7.     data[0]=data[3] = data[14] = 1;
  8.     for(int i=20;i<115;i++){
  9.         data[i]=data[i-6]+data[i-9]+data[i-20];
  10.         if(data[i]>0) std::cout<<i-14<<"\n";
  11.     }
  12.    
  13.     return 0;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top