結果
| 問題 | No.2547 Did you enjoy Chofu Festival? |
| コンテスト | |
| ユーザー |
forest3
|
| 提出日時 | 2024-01-02 14:41:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 311 bytes |
| コンパイル時間 | 1,595 ms |
| コンパイル使用メモリ | 169,520 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-27 17:46:15 |
| 合計ジャッジ時間 | 2,216 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for( ll i = 0; i < n; i++ )
using ll = long long;
int main() {
int N;
cin >> N;
vector<int> a(N), b(N);
rep(i, N) cin >> a[i];
rep(i, N) cin >> b[i];
int ans = 0;
rep(i, N) {
if(a[i] > b[i]) continue;
ans++;
}
cout << ans << endl;
}
forest3