| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 169033 | 黄锦昱 | Jam的计数法 | C++ | Accepted | 100 | 1 MS | 252 KB | 400 | 2024-08-20 15:11:56 |
#include <iostream> #include <cstdio> #include <string> using namespace std; int s,t,w; string jam; int main() { cin>>s>>t>>w>>jam; for (int i=1;i<=5;i++) for (int j=w-1;j;j--) if (jam[j]-96<=j-w+t) { jam[j]++; for (int k=j+1;k<w;k++) jam[k]=jam[k-1]+1; cout<<jam<<endl; break; } return 0; }