This commit is contained in:
2023-12-01 13:22:00 +01:00
commit 800ace7a75
7 changed files with 1129 additions and 0 deletions

16
codeforces/1822A/1.in Executable file
View File

@ -0,0 +1,16 @@
5
5 9
1 5 7 6 6
3 4 7 1 9
4 4
4 3 3 2
1 2 3 4
5 7
5 5 5 5 5
2 1 3 9 7
4 33
54 71 69 96
42 24 99 1
2 179
55 66
77 88

26
codeforces/1822A/Main.java Executable file
View File

@ -0,0 +1,26 @@
public class Main {
public static void main(String[] args) {
// Take integer as input from stdin
int q = new java.util.Scanner(System.in).nextInt();
// Loop through the input
for (int i = 0; i < q; i++) {
// Take 2 integers as input from stdin
int n = new java.util.Scanner(System.in).nextInt();
int t = new java.util.Scanner(System.in).nextInt();
// Create array and append input from stdin until newline
int[] a = new java.util.Scanner(System.in).useDelimiter("\\n").next().chars().toArray();
// Create array and append input from stdin until newline
int[] b = new java.util.Scanner(System.in).useDelimiter("\\n").next().chars().toArray();
// Print the arrays a and b
System.out.println(a);
return;
}
}
}

17
codeforces/1822A/main.py Executable file
View File

@ -0,0 +1,17 @@
# Codeforces Round #182 (Div. 2)
# Problem A
# URL: https://codeforces.com/problemset/problem/1822/A
def main():
cases = int(input())
for case in range(cases):
video, lunch = input().split()
videos_lengths = input().split()
entertainment = input().split()
print(video, lunch, videos_lengths, entertainment)
if __name__ == '__main__':
main()
# Path: 1822B/main.py