diff --git a/code_contests-0104/instruction.md b/code_contests-0104/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..97a00b16e123e7d5096fa486c78c043eaf9df8d8 --- /dev/null +++ b/code_contests-0104/instruction.md @@ -0,0 +1,44 @@ +# cdva1502 + +## Problem Description +Your task is very simple. Given K numbers A1, A2, ..., AK. You need to find f(N) mod max(A1, A2, ..., AK) . +f(N)=N! + +Input + +First line contains single integer T denoting the number of test cases.. +First line of each test case contains two integers N and K. +Next line contains K integers Ak + + +Output +For each test case, print a single line containing desired output + +Constraints + +1 <= T <= 100 +1 <= N <=100 +1 <= K <=100000 +1 <= Ak <=10^9 + + +Example +Input: +1 +5 3 +200 6 9 + +Output: +120 + +## Contest Information +- **Contest ID**: 0 +- **Problem Index**: +- **Points**: 0.0 +- **Rating**: 0 +- **Tags**: None +- **Time Limit**: None seconds +- **Memory Limit**: 0 bytes + +## Task +Solve this competitive programming problem. Provide a complete solution that handles all the given constraints and edge cases. \ No newline at end of file diff --git a/code_contests-0113/instruction.md b/code_contests-0113/instruction.md new file mode 100644 index 0000000000000000000000000000000000000000..758974f6bccebb9e3ae33b50fcce4e55d0d41769 --- /dev/null +++ b/code_contests-0113/instruction.md @@ -0,0 +1,87 @@ +# 1088_D. Ehab and another another xor problem + +## Problem Description +This is an interactive problem! + +Ehab plays a game with Laggy. Ehab has 2 hidden integers (a,b). Laggy can ask a pair of integers (c,d) and Ehab will reply with: + + * 1 if a ⊕ c>b ⊕ d. + * 0 if a ⊕ c=b ⊕ d. + * -1 if a ⊕ c