結果

問題 No.2297 Best Grouping
ユーザー HIcoder
提出日時 2024-08-17 14:22:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 562 bytes
コンパイル時間 1,107 ms
コンパイル使用メモリ 111,740 KB
最終ジャッジ日時 2025-02-23 22:59:46
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<queue>
#include<vector>
#include<cassert>
#include<random>
#include<set>
#include<map>
#include<cassert>
#include<unordered_map>
#include<bitset>
#include<numeric>
#include<algorithm>
using namespace std;
typedef long long ll;
const int inf=1<<30;
const ll INF=1LL<<62;
typedef pair<int,ll> P;
typedef pair<int,P> PP; 
const ll MOD=998244353;


int main(){
    int N;
    cin>>N;
    if(N%3==0){
        cout<<0<<endl;
    }else if(N%3==1){
        cout<<2<<endl;
    }else if(N%3==2){
        cout<<1<<endl;
    }
}
0