Skip to content

Instantly share code, notes, and snippets.

View menon92's full-sized avatar
🏠
Working from home

Mehadi Hasan Menon menon92

🏠
Working from home
View GitHub Profile
'''
Created on Sep 11, 2016
@author: Mehadi Hasan Menon
'''
import turtle
minar = turtle.Turtle() # create a turtle object
minar.pensize(2); minar.color('#B193B1') # set turtle size & color
'''
Created on Sep 11, 2016
@author: Mehadi Hasan Menon
'''
import turtle
minar = turtle.Turtle() # create a turtle object
minar.pensize(2); minar.color('#B193B1') # set turtle size & color
@menon92
menon92 / 10305.cpp
Last active November 16, 2016 19:01
//--------------------------------------------------
// Problem : 10305 - Ordering Tasks.
// Verdict : Accepted.
// Write : Mehadi Hasan Menon.
// Algorithm : DFS, Topological Sort.
// Date : 15.04.16, Time : 0.00 ms.
//------------------------------------------------
#include <iostream>
#include <vector>
#include <algorithm>
//-------------------------------
// Problem : 10449 - Traffic .
// Verdict : Accepted.
// Author : Mehadi Hasan Menon.
// Algorithm : Bellman Ford.
// Date : 06-18-16.
//-------------------------------
#include <iostream>
#include <cstdio>
using namespace std;
/**
* Problem : 10842 - Traffic Flow.
* Verdict : Accepted.
* Time : 0.060 ms.
* Writer : Mehadi Hasan Menon.
**/
#include <iostream>
#include <algorithm>
#include <vector>
#include <climits> // for INT_MAX
; addition of two number.
; Tested on emulator 8086
.CODE
MAIN PROC
MOV AX, 10
MOV BX, 2
ADD AX, BX
AAM ; take carry if any
; Multiplication of two number.
; Tested on emulator 8086
.CODE
MAIN PROC
MOV AX, 10
MOV BX, 2
MUL BX ; ax = ax * bx
AAM ; take carry if any
.CODE
MAIN PROC
MOV AX, 10
MOV BX, 2
DIV BX ; ax = ax / bx
AAM
ADD AH, 48
ADD AL, 48
.CODE
MAIN PROC
MOV AX, 1
MOV CX, 4
MENON:
MUL CX
DEC CX
AAA
JNZ MENON
.DATA
MESSAGE1 DB "Hello World $"
.CODE
MAIN PROC
;CALL THE DATA SEGMENT
MOV AX,@DATA
MOV DS,AX
;PRINT THE STRING
MOV AH,9