結果
| 問題 |
No.18 うーさー暗号
|
| コンテスト | |
| ユーザー |
kazuppa
|
| 提出日時 | 2024-06-02 07:30:42 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 8,150 ms |
| コンパイル使用メモリ | 271,580 KB |
| 実行使用メモリ | 13,952 KB |
| 最終ジャッジ日時 | 2024-12-23 02:11:56 |
| 合計ジャッジ時間 | 68,252 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 1 TLE * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;cin>>s;
for(int i=0;i<s.size();i++){
if((int)(s[i]-'A')<i+1){
while(s[i]-'A'<i+1)
s[i]+=26;
}
s[i]-=i+1;
}
cout<<s<<endl;
}
kazuppa