結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
00Asage00
|
| 提出日時 | 2017-01-21 19:37:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 396 bytes |
| コンパイル時間 | 561 ms |
| コンパイル使用メモリ | 63,992 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 06:24:26 |
| 合計ジャッジ時間 | 1,082 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include "iostream"
#include "cmath"
#include "algorithm"
#include "string"
#include "vector"
using namespace std;
int n ;
string s;
void input(){
cin >> s;
}
void output() {
cout << s << endl ;
}
int main()
{
input();
n = s.size();
for (int i = 0; i < n; i++) {
int a = i + 1;
while ( s[i] - a < 'A') {
a -= 26 ;
}
s[i] = s[i] - a ;
}
output();
return 0;
}
00Asage00