# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
471168 | 2021-09-07T15:22:14 Z | rainboy | Košnja (COCI17_kosnja) | C | 18 ms | 1196 KB |
#include <stdio.h> int min(int a, int b) { return a < b ? a : b; } int main() { int t; scanf("%d", &t); while (t--) { int n, m; scanf("%d%d", &n, &m); printf("%d\n", (min(n, m) - 1) * 2); } return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Output is correct |
2 | Correct | 0 ms | 280 KB | Output is correct |
3 | Correct | 0 ms | 204 KB | Output is correct |
4 | Correct | 0 ms | 204 KB | Output is correct |
5 | Correct | 0 ms | 204 KB | Output is correct |
6 | Correct | 12 ms | 892 KB | Output is correct |
7 | Correct | 17 ms | 1152 KB | Output is correct |
8 | Correct | 12 ms | 844 KB | Output is correct |
9 | Correct | 18 ms | 1196 KB | Output is correct |
10 | Correct | 12 ms | 796 KB | Output is correct |