Submission #1103313


Source Code Expand

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define min(a, b) a < b ? a : b
#define max(a, b) a > b ? a : b

int main(void)
{
	int a, b;

	scanf("%d %d", &a, &b);

	if (a == 1) {
		if (b == 1) printf("Draw\n");
		else printf("Alice\n");
	} else if (b == 1) {
		printf("Bob\n");
	} else {
		if (a == b) {
			printf("Draw\n");
		} else if (a > b) {
			printf("Alice\n");
		} else {
			printf("Bob\n");
		}
	}

	return (0);
}

Submission Info

Submission Time
Task A - One Card Poker
User tosho107
Language C (GCC 5.4.1)
Score 100
Code Size 486 Byte
Status AC
Exec Time 0 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:13:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &a, &b);
  ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_01.txt, subtask_1_02.txt, subtask_1_03.txt, subtask_1_04.txt, subtask_1_05.txt, subtask_1_06.txt, subtask_1_07.txt
Case Name Status Exec Time Memory
sample_01.txt AC 0 ms 128 KB
sample_02.txt AC 0 ms 128 KB
sample_03.txt AC 0 ms 128 KB
subtask_1_01.txt AC 0 ms 128 KB
subtask_1_02.txt AC 0 ms 128 KB
subtask_1_03.txt AC 0 ms 128 KB
subtask_1_04.txt AC 0 ms 128 KB
subtask_1_05.txt AC 0 ms 128 KB
subtask_1_06.txt AC 0 ms 128 KB
subtask_1_07.txt AC 0 ms 128 KB