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
| 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) |
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
| # solved | |
| import sys | |
| def getTheSum(num): | |
| if len(num)==1: | |
| return num | |
| summation = 0 | |
| for each in map(int, num): | |
| summation += each |
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/python3 | |
| from requests import get | |
| from bs4 import BeautifulSoup as bs | |
| from smtplib import SMTP | |
| """ | |
| Allow less secure app: ON | |
| from below link |
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
| 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"); |
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 | |
| # to import MySQLdb, | |
| # sudo apt-get install python-pip python-dev libmysqlclient-dev | |
| # pip install MySQL-python | |
| import MySQLdb | |
| import datetime | |
| import os |
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/python3 | |
| # accepted | |
| import sys | |
| ll = 1000001 | |
| arr = [0] * ll | |
| arr[0], arr[1] = 0, 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
| <?php | |
| function getDistanceFromLatLonInKm() { | |
| // $lat1,$lon1,$lat2,$lon2 | |
| $lat1 = 23.747047; | |
| $lon1 = 90.386709; | |
| $lat2 = 23.783014; | |
| $lon2 = 90.395310; |
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
| 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 |
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
| import socket | |
| import random | |
| import time | |
| import sys | |
| log_level = 2 | |
| def log(text, level=1): | |
| if log_level >= level: | |
| print(text) |
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
| # 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): |