Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- deque<int> v;
- int main()
- {
- int n,i=3;
- cin>>n;
- v.push_back(26),v.push_back(26*26);
- for(;i<=n;i++)
- v.push_back(25*v[1]+25*v.front()),v.back()%=777013,v.pop_front();
- cout<<v[1];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement