ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#210942 | #2069. 组合技 | three_zero30 | 0 | 0ms | 1272kb | C++11 | 339b | 2024-08-08 12:04:08 | 2024-08-08 12:40:52 |
answer
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int M,N;
string str[1005];
int n;
int dr[1005];
int ans=0;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cin>>M>>N;
for(int i=1;i<=N;i++){
cin>>str[i]>>dr[i];
int n=str[i].length();
ans=max(ans,M/n*dr[i]);
}
cout<<ans<<endl;
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 1272kb
input:
10 10 BA 476 BA 463 AAABAAX 2044 BBAXXA 934 B 128 BAXBB 886 AXB 784 AXABX 917 XXXABBA 905 XB 343
output:
2380
result:
wrong answer 1st words differ - expected: '7483', found: '2380'
Subtask #2:
score: 0
Wrong Answer
Test #4:
score: 20
Accepted
time: 0ms
memory: 1268kb
input:
1000 1 BABBXXBXBBABBXBBXXAAAAXBXXBXXXXXAAAAAAXXABBBB 13224
output:
290928
result:
ok "290928"
Test #5:
score: -20
Wrong Answer
time: 0ms
memory: 1272kb
input:
1000 1 XBBXBXB 1019
output:
144698
result:
wrong answer 1st words differ - expected: '202781', found: '144698'
Subtask #3:
score: 0
Skipped
Subtask #4:
score: 0
Skipped
Subtask #5:
score: 0
Skipped