Submission #8035132


Source Code Expand

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
            ∧_∧
      ∧_∧  (´<_` )  Welcome to My Coding Space!
     ( ´_ゝ`) /  ⌒i     @hamayanhamayan
    /   \     | |
    /   / ̄ ̄ ̄ ̄/  |
  __(__ニつ/     _/ .| .|____
     \/____/ (u ⊃
---------------------------------------------------------------------------------------------------*/














int A, B;
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> A >> B;
	int ans = max(0, A - 2 * B);
	cout << ans << endl;
}





Submission Info

Submission Time
Task A - Curtain
User hamayanhamayan
Language C++14 (GCC 5.4.1)
Score 100
Code Size 1490 Byte
Status AC
Exec Time 1 ms
Memory 256 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 15
Set Name Test Cases
Sample sample00, sample01, sample02
All handmade03, handmade04, handmade05, handmade06, random07, random08, random09, random10, random11, random12, random13, random14, sample00, sample01, sample02
Case Name Status Exec Time Memory
handmade03 AC 1 ms 256 KiB
handmade04 AC 1 ms 256 KiB
handmade05 AC 1 ms 256 KiB
handmade06 AC 1 ms 256 KiB
random07 AC 1 ms 256 KiB
random08 AC 1 ms 256 KiB
random09 AC 1 ms 256 KiB
random10 AC 1 ms 256 KiB
random11 AC 1 ms 256 KiB
random12 AC 1 ms 256 KiB
random13 AC 1 ms 256 KiB
random14 AC 1 ms 256 KiB
sample00 AC 1 ms 256 KiB
sample01 AC 1 ms 256 KiB
sample02 AC 1 ms 256 KiB