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 selenium import webdriver | |
| from selenium.webdriver.chrome.service import Service as ChromeService | |
| from webdriver_manager.chrome import ChromeDriverManager | |
| driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install())) |
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 selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| import time | |
| # Utworzenie instancji przeglądarki (tutaj Chrome) | |
| driver = webdriver.Chrome() # Upewnij się, że chromedriver jest w PATH | |
| try: | |
| # Otwórz stronę piojas.pl | |
| driver.get("https://piojas.pl") |
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
| #include <stdio.h> | |
| int main() { | |
| int n, licznik = 0; | |
| printf("Wprowadz liczbe n: "); | |
| scanf("%d", &n); | |
| if (n < 3) { | |
| printf("Do obliczen potrzebne sa co najmniej 3 liczby.\n"); | |
| return 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() | |
| { | |
| int a,b,c; | |
| scanf("%d", &a); | |
| scanf("%d", &b); | |
| scanf("%d", &c); | |
| int x=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
| import java.util.Map; | |
| import java.util.Scanner; | |
| import java.util.TreeMap; | |
| public class Main { | |
| public static void main(String[] args) { | |
| StudentGrades app = new StudentGrades(); | |
| while (true) { | |
| System.out.println("1. Add student"); | |
| System.out.println("2. Remove student"); |
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 java.time.LocalDate; | |
| import java.util.Arrays; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Integer[] intArray1 = {1, 2, 3}; | |
| Integer[] intArray2 = {}; | |
| LocalDate[] dateArray1 = {LocalDate.of(2020, 1, 1), LocalDate.of(2021, 1, 1)}; | |
| LocalDate[] dateArray2 = {}; |
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 java.time.LocalDate; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Integer[] intArray1 = {1, 2, 3}; | |
| Integer[] intArray2 = {}; | |
| LocalDate[] dateArray1 = {LocalDate.of(2020, 1, 1), LocalDate.of(2021, 1, 1)}; | |
| LocalDate[] dateArray2 = {}; | |
| System.out.println(ArrayUtil.isEmpty(intArray1)); // false |
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 java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.PriorityQueue; | |
| import java.util.Stack; | |
| public class Main { | |
| public static void main(String[] args) { | |
| List<Integer> list = new ArrayList<>(); |
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 java.time.LocalDate; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Integer[] intArray1 = {1, 2, 3, 4, 5}; | |
| Integer[] intArray2 = {1, 2, 3, 2, 1}; | |
| LocalDate[] dateArray1 = {LocalDate.of(2020, 1, 1), LocalDate.of(2020, 2, 1), LocalDate.of(2020, 3, 1)}; | |
| LocalDate[] dateArray2 = {LocalDate.of(2020, 1, 1), LocalDate.of(2020, 2, 1), LocalDate.of(2020, 1, 1)}; | |
| System.out.println(ArrayUtil.jestPalindromem(intArray1)); // false | |
| System.out.println(ArrayUtil.jestPalindromem(intArray2)); // true |
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 java.util.LinkedList; | |
| import java.util.PriorityQueue; | |
| import java.util.Scanner; | |
| public class Main { | |
| public static void main(String[] args) { | |
| PriorityQueue<Task> queue = new PriorityQueue<>((t1, t2) -> t1.priority - t2.priority); | |
| Scanner scanner = new Scanner(System.in); | |
| while(true) { | |
| String input = scanner.nextLine(); |
NewerOlder