Submission #65554326
Source Code Expand
Copy
#include <stdio.h>int N, M, K;int A[114514];int B[114514];int main(void) {int i;if (scanf("%d%d%d", &N, &M, &K) != 3) return 1;for (i = 0; i < N; i++) {if (scanf("%d", &A[i]) != 1) return 1;}for (i = 0; i < M; i++) {if (scanf("%d", &B[i]) != 1) return 1;}if (N < M) {puts("X");return 0;}if (N > M) {puts("Y");
#include <stdio.h> int N, M, K; int A[114514]; int B[114514]; int main(void) { int i; if (scanf("%d%d%d", &N, &M, &K) != 3) return 1; for (i = 0; i < N; i++) { if (scanf("%d", &A[i]) != 1) return 1; } for (i = 0; i < M; i++) { if (scanf("%d", &B[i]) != 1) return 1; } if (N < M) { puts("X"); return 0; } if (N > M) { puts("Y"); return 0; } for (i = 0; i < N; i++) { if (A[i] < B[i]) { puts("X"); return 0; } if (A[i] > B[i]) { puts("Y"); return 0; } } puts("Same"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Big Integers |
User | mikecat |
Language | C (gcc 12.2.0) |
Score | 200 |
Code Size | 562 Byte |
Status | AC |
Exec Time | 21 ms |
Memory | 2432 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample-01.txt, sample-02.txt, sample-03.txt |
All | 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, sample-01.txt, sample-02.txt, sample-03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 1 ms | 1516 KB |
01-02.txt | AC | 13 ms | 2040 KB |
01-03.txt | AC | 17 ms | 2232 KB |
01-04.txt | AC | 2 ms | 1556 KB |
01-05.txt | AC | 17 ms | 2256 KB |
01-06.txt | AC | 12 ms | 2084 KB |
01-07.txt | AC | 20 ms | 2348 KB |
01-08.txt | AC | 21 ms | 2312 KB |
01-09.txt | AC | 20 ms | 2416 KB |
01-10.txt | AC | 21 ms | 2432 KB |
01-11.txt | AC | 21 ms | 2376 KB |
sample-01.txt | AC | 0 ms | 1620 KB |
sample-02.txt | AC | 0 ms | 1628 KB |
sample-03.txt | AC | 0 ms | 1624 KB |