This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <math.h> | |
#include <stdio.h> | |
using namespace std; | |
int main() | |
{ | |
long int N,K,arr[100000],i,j,ctr=0; | |
scanf("%d%d",&N,&K); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, string, hashlib, getpass | |
ask_silent = getpass.getpass | |
def ask_normal(str): | |
sys.stderr.write(str) | |
return sys.stdin.readline()[0:-1] # remove the newline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python2.7 | |
stream = open("words.txt",'r') | |
def get_words(): | |
words = [] | |
for word in stream: | |
words.append(word.strip()) | |
return words |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python2.7 | |
def signature(s): | |
t = list(s) | |
t.sort() | |
t = ''.join(t) | |
return t | |
def all_anagrams(filename): | |
d = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[18:54] fredy ok | |
[18:56] fredy is this problem only at facebook page? | |
[18:57] Guest48295 no | |
[18:57] Guest48295 all pages | |
[18:57] Guest48295 like picture sharing sites | |
[18:57] Guest48295 google images | |
[18:57] Guest48295 and also games pages | |
[18:58] fredy could you provide a screenshot? | |
[18:59] fredy you can use http://imgur.com/ for uploading it | |
[18:59] Guest48295 wait |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server Error in '/prm' Application. | |
ORA-12500: TNS:listener failed to start a dedicated server process | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.Runtime.InteropServices.COMException: ORA-12500: TNS:listener failed to start a dedicated server process | |
Source Error: | |
Line 10: If studcn.State Then studcn.Close() | |
Line 11: On Error GoTo 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COOKIELABS | |
Hack, Design, Innovate | |
Name: | |
Programming Languages known: | |
(List all of them along with the knowledge level as(Beginner/moderate/advanced)) | |
Would like to work on: JAVA/ C# | |
(Please choose one) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_triangle_no(): | |
num = [1, 3] | |
i = 2 | |
while 1 > 0: | |
num.append(num[i - 1] + i + 1) | |
if num[i] > 500000000000000000000 and factors(num[i]) > 500: | |
return num[i] | |
i = i + 1 | |
def mark(numbers, p, N): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def change_base(n, b): | |
rem = '' | |
while n > 0: | |
rem += str((n % b)) | |
n /= b | |
return rem[::-1] | |
def pal_base(n): | |
base = 2 | |
while 1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Cloudy] d9c438f712b83: Downloading webpage | |
[Cloudy] Dumping request to http://www.cloudy.ec/embed.php?id=d9c438f712b83 | |
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIj4KPGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+aHRtbCxib2R5e2hlaWdodDoxMDAlO3BhZGRpbmc6MDttYXJnaW46MDt9Lm9je2Rpc3BsYXk6dGFibGU7d2lkdGg6MTAwJTtoZWlnaHQ6MTAwJTt9Lmlje2Rpc3BsYXk6dGFibGUtY2VsbDt2ZXJ0aWNhbC1hbGlnbjptaWRkbGU7aGVpZ2h0OjEwMCU7fWRpdi5tc2d7ZGlzcGxheTpibG9jaztib3JkZXI6MXB4IHNvbGlkICMzMGM7cGFkZGluZzowO3dpZHRoOjUwMHB4O2ZvbnQtZmFtaWx5OmhlbHZldGljYSxzYW5zLXNlcmlmO21hcmdpbjoxMHB4IGF1dG87fWgxe2ZvbnQtd2VpZ2h0OmJvbGQ7Y29sb3I6I2ZmZjtmb250LXNpemU6MTRweDttYXJnaW46MDtwYWRkaW5nOjJweDt0ZXh0LWFsaWduOmNlbnRlcjtiYWNrZ3JvdW5kOiAjMzBjO31we2ZvbnQtc2l6ZToxMnB4O21hcmdpbjoxNXB4IGF1dG87d2lkdGg6NzUlO2ZvbnQtZmFtaWx5OmhlbHZldGljYSxzYW5zLXNlcmlmO3RleHQtYWxpZ246bGVmdDt9PC9zdHlsZT48dGl0bGU+VGhlIFVSTCB5b3UgcmVxdWVzdGVkIGhhcyBiZWVuIGJsb2NrZWQ8L3RpdGxlPjwvaGVhZD48 |
OlderNewer