제출 #4220

#제출 시각아이디문제언어결과실행 시간메모리
4220dbfudGreat Pow! (kriii1_G)C++98
1 / 1
0 ms1672 KiB
#include <iostream>
using namespace std;
int main()
{
    int M, N = 0;
    cin >> M >> N ;
    
    if ( N == 0 )
    {
       cout << M;
       return 0; 
    }   
    
    if ( M % 2 == 0 ) 
       cout << 1 ;
    else
       cout << M ;   
      
    
    return 0;
} 
#Verdict Execution timeMemoryGrader output
Fetching results...