| 일반 | 2023년 3월 19일 22:11:51 | GEC Cup: Key Reminders
- You must not print any input prompts. Similarly, you must not print any extraneous detail.
Example: Question asks you to get two integers given in separate lines, and then output the sum of two numbers.
DO:
a=int(input())
b=int(input())
print(a+b)
DO NOT:
a=int(input(“What is the value of a? ”))
b=int(input(“What is the value of b?”))
print(a+b)
Input prompts should not be included.
DO NOT:
a=int(input())
b=int(input())
print(f”The sum is {a+b}.”)
Do not print any extraneous output. |
- Similarly, strictly adhere to the input and output format.
Example: Question asks you to get two integers given in separate lines, and then output the sum of two numbers.
DO:
a=int(input())
b=int(input())
print(a+b)
DO NOT:
a, b = map(int, input().split())
print(a+b)
This program gets two numbers separated by a space.
DO NOT:
a=int(input())
b=int(input())
print()
print(a+b)
This program prints a preceding newline, which is not needed by the question. |
- Always be careful of the data type you use. Overflow may occur if a variable’s value exceeds its datatype’s range.
Example: (C++) A variable contains 2147483647. You are trying to add 1 to the variable.
DO:
long long int a = 2147483647;
a += 1;
DO NOT:
int a = 2147483647;
a += 1;
You get 2147483648, which exceeds the range of int. Thus, an overflow occurs. |
- You must not use your personal Baekjoon ID to participate in the competition. The competition is only open to the IDs listed in page 2 of the GEC Cup Team List.pdf document, which was sent to your email.
- Cheating
- We will strictly deal with any academic dishonesty.
- You CAN:
- Communicate with your teammates using any means
- Consult online resources (e.g. language documentation or stackoverflow)
- You CANNOT:
- Use an AI-based tool
- AI-based tools include Copilot, ChatGPT, etc. We do not specifically prohibit the usage of an IDE with autocomplete features.
- Communicate with other teams or anyone outside the room.
- Copy and paste any code from online. We define ‘copy and paste’ as copying and pasting a significant part of the solution. This includes changing variable names and/or indentation.
- We have an expert team of programmers to check your code
- Meaning of submission results
- 맞았습니다!! / Accepted: your code is correct
- 틀렸습니다 / Wrong answer: your code is wrong
- 출력 형식이 잘못되었습니다 / Presentation error: Your answer is correct, but it was outputted with wrong whitespaces
- 시간 초과 / Time limit exceeded: your code takes more than the time limit (usually 2 seconds) to run. Try making your code more efficient, or check if there is infinite loop
- 메모리 초과 / Memory limit exceeded: your code uses more than the memory limit (usually 128 MB)
- 출력 초과 / Output limit exceeded: your code output too much
- 런타임 에러 / Runtime error: your code has some kind of error while running.
- 컴파일 에러 / Compilation error: your code has some kind of error while compiling. Click on it to see compiler output.
|