Submission #2212746


Source Code Expand

#include <bits/stdc++.h>
using namespace std;

int main(void) {
    int n, m;
    cin >> n >> m;
    cout << max(n + (m - n * 2) / 4, m / 2));
}

Submission Info

Submission Time
Task C - Scc Puzzle
User zohe
Language C++14 (GCC 5.4.1)
Score 0
Code Size 151 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:7:44: error: expected ‘;’ before ‘)’ token
     cout << max(n + (m - n * 2) / 4, m / 2));
                                            ^