Skip to content

Instantly share code, notes, and snippets.

View abidkhan484's full-sized avatar
🎯
Focusing

AbId KhAn abidkhan484

🎯
Focusing
View GitHub Profile
for _ in range(int(input().strip())):
total = 0
for __ in range(int(input().strip())):
a,b,c = map(int,input().split())
total += (a*c)
print(total)
# solved
import sys
def getTheSum(num):
if len(num)==1:
return num
summation = 0
for each in map(int, num):
summation += each
@abidkhan484
abidkhan484 / mail_drupal_version.py
Created January 15, 2019 13:38
send mail for drupal version
#! /usr/bin/python3
from requests import get
from bs4 import BeautifulSoup as bs
from smtplib import SMTP
"""
Allow less secure app: ON
from below link
var hour_vals = new Array();
var time_diff = 10;
var total_slot = (60*24)/time_diff;
var minute_for_pad = 0;
var hour_for_pad = 0;
var i, t_hour, t_min, hour_init;
for(i=0; i<total_slot; i++){
t_hour = '' + hour_for_pad;
t_min = '' + minute_for_pad;
hour_init = t_hour.padStart(2, "0") + ":" +t_min.padStart(2, "0");
#!/usr/bin/env python
# to import MySQLdb,
# sudo apt-get install python-pip python-dev libmysqlclient-dev
# pip install MySQL-python
import MySQLdb
import datetime
import os
#!/usr/bin/python3
# accepted
import sys
ll = 1000001
arr = [0] * ll
arr[0], arr[1] = 0, 1
<?php
function getDistanceFromLatLonInKm() {
// $lat1,$lon1,$lat2,$lon2
$lat1 = 23.747047;
$lon1 = 90.386709;
$lat2 = 23.783014;
$lon2 = 90.395310;
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
import csv
import time
import socket
import random
import time
import sys
log_level = 2
def log(text, level=1):
if log_level >= level:
print(text)
# not yet solved
# a test case: 15 5 2 3
n, a, b, c = map(int, input().split())
a, b, c = sorted([a,b,c])
p, q, r = (n//a)+1, (n//b)+1, (n//c)+1
maximum = -1
for i in range(r):