Submission #1690506


Source Code Expand

#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
#include <complex>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
A=(A+11)%13;
B=(B+11)%13;
if(A>B)cout<<"Alice"<<endl;
if(A==B)cout<<"Draw"<<endl;
if(A<B)cout<<"Bob"<<endl;
system ("pause");
return 0;
}

Submission Info

Submission Time
Task A - One Card Poker
User wangxixi
Language C++14 (GCC 5.4.1)
Score 100
Code Size 550 Byte
Status AC
Exec Time 2 ms
Memory 504 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:29:17: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
 system ("pause");
                 ^

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 2 ms 504 KB
sample_02.txt AC 2 ms 504 KB
sample_03.txt AC 2 ms 504 KB
subtask_1_01.txt AC 2 ms 504 KB
subtask_1_02.txt AC 2 ms 504 KB
subtask_1_03.txt AC 2 ms 504 KB
subtask_1_04.txt AC 2 ms 504 KB
subtask_1_05.txt AC 2 ms 504 KB
subtask_1_06.txt AC 2 ms 504 KB
subtask_1_07.txt AC 2 ms 504 KB