First line contains the number of test cases (T): 1 ≤ T ≤ 1000
Second line represents the number of problems.1 ≤ N ≤ 50
Next N lines contains two integer numbers. 0 ≤ number ≤ 20000
일단 T값이 무시되는 것이 아니고 아래 두 줄이 T번 반복되는 것이기 때문에 아래와 같이 수정해야 할 것 같구요...
First line contains the number of test cases (T): 1 ≤ T ≤ 1000
T test cases follow. For each test case, the first line represents the number of problems. 1 ≤ N ≤ 50
Next N lines contain two integer numbers. 0 ≤ number ≤ 20000
그리고 Rust로 풀면서 number에 대한 입력을 u64 (unsigned 64bit)로 받았을 때 런타임 에러를 받았고, i64 (signed 64bit)로 받았더니 통과했습니다. 오버플로 문제는 아닌 거 같고, 입력으로 들어오는 수 중에 음수가 있는 것 같습니다. 입력 파일과 입력 설명 둘 중 하나는 수정이 필요할 듯 합니다.
bubbler 3년 전
현재 입력 설명이 이렇게 되어있는데...
First line contains the number of test cases (T): 1 ≤ T ≤ 1000
Second line represents the number of problems.1 ≤ N ≤ 50
Next N lines contains two integer numbers. 0 ≤ number ≤ 20000
일단 T값이 무시되는 것이 아니고 아래 두 줄이 T번 반복되는 것이기 때문에 아래와 같이 수정해야 할 것 같구요...
First line contains the number of test cases (T): 1 ≤ T ≤ 1000
T test cases follow. For each test case, the first line represents the number of problems. 1 ≤ N ≤ 50
Next N lines contain two integer numbers. 0 ≤ number ≤ 20000
그리고 Rust로 풀면서 number에 대한 입력을 u64 (unsigned 64bit)로 받았을 때 런타임 에러를 받았고, i64 (signed 64bit)로 받았더니 통과했습니다. 오버플로 문제는 아닌 거 같고, 입력으로 들어오는 수 중에 음수가 있는 것 같습니다. 입력 파일과 입력 설명 둘 중 하나는 수정이 필요할 듯 합니다.