This file contains 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
''' | |
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 |
This file contains 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
''' | |
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 |
This file contains 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
//-------------------------------------------------- | |
// 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> |
This file contains 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
//------------------------------- | |
// Problem : 10449 - Traffic . | |
// Verdict : Accepted. | |
// Author : Mehadi Hasan Menon. | |
// Algorithm : Bellman Ford. | |
// Date : 06-18-16. | |
//------------------------------- | |
#include <iostream> | |
#include <cstdio> | |
using namespace std; |
This file contains 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
/** | |
* 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 |
This file contains 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
; 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 |
This file contains 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
; 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 |
This file contains 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
.CODE | |
MAIN PROC | |
MOV AX, 10 | |
MOV BX, 2 | |
DIV BX ; ax = ax / bx | |
AAM | |
ADD AH, 48 | |
ADD AL, 48 |
This file contains 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
.CODE | |
MAIN PROC | |
MOV AX, 1 | |
MOV CX, 4 | |
MENON: | |
MUL CX | |
DEC CX | |
AAA | |
JNZ MENON |
This file contains 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
.DATA | |
MESSAGE1 DB "Hello World $" | |
.CODE | |
MAIN PROC | |
;CALL THE DATA SEGMENT | |
MOV AX,@DATA | |
MOV DS,AX | |
;PRINT THE STRING | |
MOV AH,9 |
OlderNewer