Submission #657683


Source Code Expand


#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <cmath>
#include <stack>

using namespace std;
typedef unsigned char byte;
typedef long long int LLint;
typedef unsigned long long int uLLint;

int main(){
    LLint a;
    
    cin>>a;
    
    cout<<((a+1)/2*2-(a&1^1))<<endl;
    
    return 0;
}

Submission Info

Submission Time
Task B - ペア
User m_buyoh
Language C++11 (GCC 4.9.2)
Score 100
Code Size 358 Byte
Status AC
Exec Time 27 ms
Memory 924 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 22
Set Name Test Cases
Sample s0.txt, s1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, s0.txt, s1.txt
Case Name Status Exec Time Memory
000.txt AC 26 ms 800 KB
001.txt AC 27 ms 768 KB
002.txt AC 26 ms 924 KB
003.txt AC 26 ms 796 KB
004.txt AC 26 ms 804 KB
005.txt AC 26 ms 796 KB
006.txt AC 26 ms 804 KB
007.txt AC 27 ms 744 KB
008.txt AC 26 ms 800 KB
009.txt AC 26 ms 672 KB
010.txt AC 27 ms 804 KB
011.txt AC 26 ms 816 KB
012.txt AC 26 ms 800 KB
013.txt AC 26 ms 812 KB
014.txt AC 26 ms 800 KB
015.txt AC 25 ms 804 KB
016.txt AC 27 ms 732 KB
017.txt AC 26 ms 800 KB
018.txt AC 26 ms 804 KB
019.txt AC 26 ms 796 KB
s0.txt AC 26 ms 920 KB
s1.txt AC 26 ms 924 KB