結果

問題 No.2547 Did you enjoy Chofu Festival?
ユーザー setunaasetunaa
提出日時 2023-11-25 19:59:03
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 877 bytes
コンパイル時間 1,883 ms
コンパイル使用メモリ 168,692 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2023-11-25 19:59:09
合計ジャッジ時間 2,609 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 2 ms
6,676 KB
testcase_10 AC 2 ms
6,676 KB
testcase_11 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define all(v) (v).ibegin(),(v).end()
#define ssum(v) accumulate(all(v),0)
#define mmax(v) *max_element(all(v))
#define mmin(v) *min_element(all(v))
#define st(v) sort((v).begin(),(v).end())
#define rst(v) sort((v).rbegin(),(v).rend())
#define ll long long
#define ull unsigned long long
#define OVERLOAD_REP(_1, _2, _3, name, ...) name
#define rrep(i,n) for(int i=1;i<=n;i++)
#define REP1(i, n) for (auto i = std::decay_t<decltype(n)>{}; (i) != (n); ++(i))
#define REP2(i, l, r) for (auto i = (l); (i) != (r); ++(i))
#define rep(...) OVERLOAD_REP(__VA_ARGS__, REP2, REP1)(__VA_ARGS__)
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int cnt=0;
    int n;cin>>n;
    vector<int>a(n),b(n);
    rep(i,n)cin>>a[i];
    rep(i,n)cin>>b[i];
    rep(i,n){
        if(a[i]<=b[i])cnt++;
    }
    cout<<cnt<<endl;
}
0