結果

問題 No.1986 Yummy
ユーザー Md Shahinur RahmanMd Shahinur Rahman
提出日時 2022-06-24 21:39:18
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 5,036 bytes
コンパイル時間 1,491 ms
コンパイル使用メモリ 161,492 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-26 04:53:16
合計ジャッジ時間 2,359 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
6,944 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
6,940 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 2 ms
6,944 KB
testcase_14 WA -
testcase_15 AC 2 ms
6,944 KB
testcase_16 WA -
testcase_17 AC 1 ms
6,940 KB
testcase_18 AC 2 ms
6,940 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 2 ms
6,940 KB
testcase_25 AC 1 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define itsmdshahin		  ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define ll                long long
#define LD				  long double
#define pb                push_back
#define p_b               pop_back
#define all(x)            (x).begin(),(x).end()
#define rev(x)            (x).rbegin(),(x).rend()
#define sz(x)             (int)((x).size())
#define len(x)            x.length()
#define fir               first
#define sec               second
#define pii               pair<int,int>
#define pll               pair<int64_t,int64_t>
#define vi                vector<int>
#define vl 				  vector<int64_t>
#define umi			      unordered_map<int,int>
#define uml               unordered_map<int64_t,int64_t>
#define mem1(a)           memset(a,-1,sizeof(a))
#define mem0(a)           memset(a,0,sizeof(a))

const ll INF=1e18;
const ll MOD_1=1e9+7;
const ll MOD_2=998244353;
const ll mod = 1e9+7;

using namespace std;
int main()
{
    itsmdshahin;
    ll n;cin>>n;
    if(n%2==0)cout << 2;// << endl;
    else cout << 1 ;//
}
//        ll mn;
//        if(n==m)
//        {
//            for(int i=0; i<m; i++)cout << "1";
//            for(int i=0; i<n; i++)cout << "0";
//            cout << "\n";
//        }
//        else if(n>m)
//        {
//            mn = n-m;
//            for(int i=0; i<mn; i++)
//            {
//                cout << "0";
//            }
//            for(int i=0; i<m; i++)
//            {
//                cout << "1";
//            }
//            for(int i=0; i<n-mn; i++)
//            {
//                cout << "0";
//            }
//            cout << endl;
//        }
//        else
//        {
//            if(abs(m-n)==1)
//            {
//                if(m>=n)
//                {
//                    for(int i=0; i<(n+m); i++)
//                    {
//                        if(i%2==0)
//                        {
//                            cout << "1";
//                        }
//                        else cout << "0";
//                    }
//                }
//                else
//                {
//                    for(int i=0; i<(n+m); i++)
//                    {
//                        if(i%2==0)
//                        {
//                            cout << "0";
//                        }
//                        else cout << "1";
//                    }
//                }
//                cout << endl;
//            }
//            else
//            {
//                for(int i=0; i<n; i++)cout << "0";
//                for(int i=0; i<m; i++)cout << "1";
//                cout << "\n";
//            }
//        }
//
//        if(m>=n)mn = abs(m-n);
//        else mn = abs(n-m);
//
//        if(mn==1)
//        {
//            if(m>=n)
//            {
//                for(int i=0; i<(n+m); i++)
//                {
//                    if(i%2==0)
//                    {
//                        cout << "1";
//                    }
//                    else cout << "0";
//                }
//            }
//            else
//            {
//                for(int i=0; i<(n+m); i++)
//                {
//                    if(i%2==0)
//                    {
//                        cout << "0";
//                    }
//                    else cout << "1";
//                }
//            }
//            cout << endl;
//        }
//        else
//        {
//            if(mn> n)
//            {
//                for(int i=0; i<n; i++)cout << "0";
//                for(int i=0; i<m; i++)cout << "1";
//            }
//            else
//            {
//                for(int i=0; i<mn; i++)cout << "0";
//                for(int i=0; i<m; i++)cout << "1";
//                for(int i=0; i<n-mn; i++)cout << "0";
//                cout << endl;
//            }
//        }

//bool prime[10000000+1];
//set <ll> st;
//void Prime_seive()
//{
//    memset(prime,1,sizeof(prime));
//    prime[0]=0;
//    prime[1]=0;
//    for(ll i=2; i*i<=1e12+1; i++)
//    {
//        if(prime[i])
//        {
//            for(ll j=i*2; j*j<=1e12+1; j+=i)
//            {
//                prime[j]=0;
//            }
//        }
//    }
//    for(ll i=2; i*i<1e12+1; i++)
//    {
//        if(prime[i])st.insert(i*i);
//    }
//}
//bool isPrime(ll n)
//{
//    if(n<2)return 0;
//    for(int i=2; i<n; i++)if(n%i==0)return 0;
//
//    return 1;
//}
//
//void fun()
//{
//    int n=0;
//    if(n==1 || n==2)cout << 3 << endl;
//    else if(n%2!=0)
//    {
//        cout << 1 << endl;
//    }
//    else
//    {
//        cout << (n^(n+1)) <<" " << (n&(n+1)) << endl;
//    }
//    cout << " " << (n<<0) << endl;
//}
//int main()
//{
//    itsmdshahin;
//    //Prime_seive()
//    ll t;cin >> t;
//    while(t--){
//        ll n;cin >> n;
//        ll a[n],sum=0;
//        for(int i=0;i<n;i++)cin >> a[i];
//        if(n==1){
//            sum += a[0];
//        }
//        else if(n==2)sum += a[0]+a[n-1];
//        else sum += a[1]+a[n-1];
//        cout << sum << endl;
//    }
//}


0