Skip to content

Instantly share code, notes, and snippets.

View prongs's full-sized avatar

Rajat Khandelwal prongs

View GitHub Profile
#define s(n) scanf("%d", &n)
#define MIN(a,b) ((a<b)?a:b)
#define MAX(a,b) ((a>b)?a:b)
#include <iostream>
#include <string.h>
struct W
{
int L; int C;
};
int T,N,M;
1000,158,158,0,0800:448.386834,0600:71.417739,parks:35.449386,sun:28.705896,head:26.400744
2000,118,115,3,0800:1140.655344,0600:98.946037,express:16.226378,sat:14.901125,sun:14.008643
3000,89,83,6,0800:195.685100,0600:49.138427,express:14.873718,head:12.230038,parks:11.384672
4000,102,81,21,0800:19.483023,parks:12.133912,head:10.909532,express:10.456904,center:9.967654
5000,107,80,27,0800:11.763761,parks:11.757321,head:10.250311,express:9.428142,alternative:8.667120
6000,100,81,19,head:10.292099,express:8.567801,within:7.785874,0800:7.581154,alternative:7.481914
7000,92,81,11,head:10.531610,express:8.528350,within:7.362796,0800:7.053906,alternative:7.035766
8000,90,80,10,head:11.035990,msmsw04p:9.347200,express:8.523428,0800:6.996892,alternative:6.970971
9000,98,78,20,head:11.648383,express:8.596175,msmsw04p:8.421246,0800:7.218982,alternative:6.897244
after training on 1000 data, test results:
Accuracy = 86.4% (864/1000) (classification)
after training on 2000 data, test results:
Accuracy = 91.3% (913/1000) (classification)
after training on 3000 data, test results:
Accuracy = 90.4% (904/1000) (classification)
after training on 4000 data, test results:
Accuracy = 88.4% (884/1000) (classification)
after training on 5000 data, test results:
Accuracy = 86.5% (865/1000) (classification)
<snippet>
<description>#include "…"</description>
<tabTrigger>codechef</tabTrigger>
<content><![CDATA[
#define s(n) scanf("%d", &n)
#define MIN(a,b) ((a<b)?a:b)
#define MAX(a,b) ((a>b)?a:b)
${1:/*more #defines*/}
#include <iostream>
#include <string.h>
#include <stdio.h>
void scan(int* i)
{
int t=0;
char c;
bool negative=false;
c=getchar_unlocked();
while(c<'0'&&c>'9')
{

Yar start karte hain..

  1. Join github
  2. install this
  3. Then install this
  4. git clone graphics project
  5. I add you as a collaborator
#include <iostream>
#include <string.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
/*more #includes. Don't write "using namespace std" here*/
#ifdef __WIN32__
#define getchar_unlocked getchar
def indent(in_stream,out_stream):
indent=0;
def split(line):
return list(x.strip() for x in line.split(';'))
def printsplit(line):
lines = split(line)
if len(lines)==1 and lines[0].strip()=='':
return
print lines
if lines[-1].strip()=='':
// Ideone_Language_Id:1
/* Don"t remove the first line! */
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>
// Ideone_Language_Id:1
/* Don"t remove the first line! */
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>