結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
nayuta
|
| 提出日時 | 2019-12-22 18:42:03 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 2,372 ms |
| コンパイル使用メモリ | 85,748 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 13:04:00 |
| 合計ジャッジ時間 | 1,965 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <utility>
using namespace std;
int main(void){
string s;
cin >> s;
for(int i = 0; i < s.size(); i++){
int l = i + 1;
l %= 26;
int c = (int)(s[i] - 'A');
c -= l;
if(c < 0) c += 26;
s[i] = (char)('A' + c);
}
cout << s << endl;
return 0;
}
nayuta