Submission #20692021
Source Code Expand
/** author: samari06, created: 06.03.2021 20:51:53 **/
#include <bits/stdc++.h>
#define REP(i, N) for(int i = 0; i < (int)N; i++)
using namespace std;
typedef long long ll;
int main(){
int a,b; scanf("%d%d",&a, &b);
int res = 4;
a += b;
if(a >= 15 && b >= 8) res = 1;
else if(a >= 10 && b >= 3) res = 2;
else if(a >= 3) res = 3;
cout << res;
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - I Scream |
| User | samari06 |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 406 Byte |
| Status | AC |
| Exec Time | 8 ms |
| Memory | 3688 KiB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:8:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
8 | int a,b; scanf("%d%d",&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 | handmade_00.txt, handmade_01.txt, handmade_02.txt, handmade_03.txt, handmade_04.txt, handmade_05.txt, handmade_06.txt, handmade_07.txt, handmade_08.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| handmade_00.txt | AC | 8 ms | 3660 KiB |
| handmade_01.txt | AC | 2 ms | 3688 KiB |
| handmade_02.txt | AC | 2 ms | 3496 KiB |
| handmade_03.txt | AC | 2 ms | 3648 KiB |
| handmade_04.txt | AC | 2 ms | 3632 KiB |
| handmade_05.txt | AC | 2 ms | 3524 KiB |
| handmade_06.txt | AC | 2 ms | 3684 KiB |
| handmade_07.txt | AC | 2 ms | 3612 KiB |
| handmade_08.txt | AC | 2 ms | 3528 KiB |
| random_00.txt | AC | 2 ms | 3688 KiB |
| random_01.txt | AC | 2 ms | 3656 KiB |
| random_02.txt | AC | 2 ms | 3616 KiB |
| random_03.txt | AC | 2 ms | 3632 KiB |
| random_04.txt | AC | 2 ms | 3632 KiB |
| sample_01.txt | AC | 3 ms | 3656 KiB |
| sample_02.txt | AC | 3 ms | 3516 KiB |
| sample_03.txt | AC | 2 ms | 3516 KiB |