Submission #1103028
Source Code Expand
#include <cstdio> #include <vector> #include <algorithm> #include <functional> #include <tuple> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <array> #include <utility> #include <valarray> using namespace std; int main() { int A, B; scanf("%d %d\n", &A, &B); if (A == 1) A = 14; if (B == 1) B = 14; if (A > B){ puts("Alice"); }else if (A < B){ puts("Bob"); }else{ puts("Draw"); } }
Submission Info
Submission Time | |
---|---|
Task | A - One Card Poker |
User | painfulness |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 512 Byte |
Status | AC |
Exec Time | 0 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:19:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &A, &B); ^
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 |