1 條題解

  • -1
    @ 2026-1-15 11:13:02
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        cin.tie(nullptr) -> ios::sync_with_stdio(false);
        int n;
        cin>>n;
        if(n%4==1||n%4==2) cout<<1;
        else cout<<0;
    }
    

    資訊

    ID
    50
    時間
    1000ms
    記憶體
    256MiB
    難度
    7
    標籤
    (無)
    遞交數
    18
    已透過
    8
    上傳者