牛客周赛 Round 104 A

#牛客创作赏金赛#
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define INF ((int)1e18)
#define double long double
#define endl "\n"
#define PII pair<int,int>
#define pb push_back
#define ar2 array<int,2>
#define ar3 array<int,3>
#define ar4 array<int,4>
#define PI acos(-1.0)
#define xx first
#define yy second
const int N = 1;

void solve()
{
    int ans=0;
    for(int i=1;i<=4;i++){
        int x;cin>>x;
        if(x==i)ans++;
    }
    cout<<ans<<endl;
}

signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    int T = 1;
    // cin >> T;
    while(T--)
    {
        solve();
    }
    return 0;
}
全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务