Submission #1115331
Source Code Expand
/* code was created by Bayel Abdikarimov */ # include <bits/stdc++.h> # define frein freopen("input.in","r", stdin) # define freout freopen("output.out","w", stdout) # define fr first # define sc second; # define pb push_back # define ll long long const int N = 1e5 + 5; const int INF = 1e9 + 10; const int mod = 1e9; const int prime = 271; using namespace std; inline void solve() { long long x, y; scanf("%lld%lld", &x, &y); printf("%lld", (x + (y / 2)) / 2); } int main () { solve(); return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Scc Puzzle |
User | bayabdi |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 578 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘void solve()’: ./Main.cpp:27:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld", &x, &y); ^
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 300 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 1 ms | 256 KB |
00_example_02.txt | AC | 1 ms | 256 KB |
01.txt | WA | 1 ms | 256 KB |
02.txt | AC | 1 ms | 256 KB |
03.txt | WA | 1 ms | 256 KB |
04.txt | WA | 1 ms | 256 KB |
05.txt | WA | 1 ms | 256 KB |
06.txt | AC | 1 ms | 256 KB |
07.txt | AC | 1 ms | 256 KB |