結果
| 問題 | No.989 N×Mマス計算(K以上) |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2020-02-14 02:24:58 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 394 bytes |
| 記録 | |
| コンパイル時間 | 1,540 ms |
| コンパイル使用メモリ | 215,968 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-08 18:39:51 |
| 合計ジャッジ時間 | 3,182 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 WA * 2 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){cin.tie(0);ios::sync_with_stdio(false);
int N,M,K;cin>>N>>M>>K;
string op;cin>>op;
vector<int>B(M);
for(int i=0;i<M;++i){
cin>>B[i];
}
sort(B.begin(),B.end());
int z=0;
for(int i=0;i<N;++i){
int A;cin>>A;
z+=B.end()-lower_bound(B.begin(),B.end(),op=="+"?K-A:(K-1)/A+1);
}
cout<<z<<"\n";
return 0;
}
%20