Submission #53828141
Source Code Expand
Copy
#include <iostream>using namespace std;int main(){cin.tie(NULL), ios_base::sync_with_stdio(false);int a, b;scanf("%d%d", &a, &b);if(a==b) cout << -1;else cout << 6-a-b;return 0;}
#include <iostream> using namespace std; int main(){ cin.tie(NULL), ios_base::sync_with_stdio(false); int a, b; scanf("%d%d", &a, &b); if(a==b) cout << -1; else cout << 6-a-b; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Who Ate the Cake? |
User | iluem100 |
Language | C++ 20 (gcc 12.2) |
Score | 100 |
Code Size | 224 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3888 KB |
Compile Error
Main.cpp: In function ‘int main()’: Main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d%d", &a, &b); | ~~~~~^~~~~~~~~~~~~~~~
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 3768 KB |
00_sample_01.txt | AC | 1 ms | 3768 KB |
00_sample_02.txt | AC | 1 ms | 3692 KB |
01_random_00.txt | AC | 1 ms | 3704 KB |
01_random_01.txt | AC | 1 ms | 3716 KB |
01_random_02.txt | AC | 1 ms | 3708 KB |
01_random_03.txt | AC | 1 ms | 3888 KB |
01_random_04.txt | AC | 1 ms | 3708 KB |
01_random_05.txt | AC | 1 ms | 3692 KB |
01_random_06.txt | AC | 1 ms | 3692 KB |
01_random_07.txt | AC | 1 ms | 3704 KB |
01_random_08.txt | AC | 1 ms | 3708 KB |