Skip to content

Instantly share code, notes, and snippets.

import json
from datetime import datetime, time
import pytz
def lambda_handler(event, context):
# Define CET timezone
cet = pytz.timezone('CET')
# Define working hours (example: 9 AM to 5 PM)
start_time = time(9, 0)
Flying into controlled airspace (Class C) without proper clearance or failing to comply with air traffic control (ATC) instructions can lead to serious consequences, including safety hazards and legal repercussions. If you enter Class C airspace in Germany without hearing or complying with ATC's denial of entry, the potential consequences might include:
1. **Safety Risks:** You could endanger yourself, passengers, and other aircraft. Controlled airspace is designed to manage aircraft traffic effectively and safely, particularly where high volumes of air traffic exist.
2. **Investigation:** The incident is likely to trigger an investigation by the relevant aviation authority, in this case, the Luftfahrt-Bundesamt (LBA) or local ATC authorities. They will review communications, radar data, and pilot actions to determine the circumstances of the violation.
3. **Legal Action:** Depending on the severity of the airspace violation and the level of non-compliance with ATC instructions, you could face fines, suspe

Задача

Задача телефонных линий.

На строительном участке нужно создать телефонную сеть, соединяющую все бытовки. Для того, чтобы телефонные линии не мешали строительству, их решили проводить вдоль дорог. Составьте программу, реализующую алгоритм Прима для вычисления минимальной общей длины телефонных линий для указанной конфигурации участка. Граф конфигурации участка должен быть представлен в программе в виде списка инцидентности.

Программа должна считывать со стандартного потока ввода количество бытовок , количество дорог , соединяющих бытовки, и информацию об этих дорогах. При этом каждая дорога задаётся тремя целыми числами , и , где и — номера соединяемых дорогой бытовок (), а — длина дороги.

Программа должна выводить в стандартный поток вывода минимальную общую длину телефонных линий.

Например, для входных данных

import React, {Component} from 'react';
import {connect} from "react-redux";
import Textarea from "react-textarea-autosize";
import {
addChild,
deleteChild,
updateChild,
} from "../actions/canvas";
import {moveCursorToEnd} from "../core/util";
$ cheat git
Setup
-----
git clone <repo>
clone the repository specified by <repo>; this is similar to "checkout" in
some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file: