个人感觉这次D有点难。
比赛链接:ABC347
签到题。
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,K;
cin>>N>>K;
for(int i=1;i<=N;i++){
int A;
cin>>A;
if(A%K==0)
cout<<A/K;
}
return 0;
}
主要考substr的用法。
#include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin>>S;
set<str> st;
for(int i=0;i<S.size();i++){
for(int j=0;j<=i;j+