結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2017-11-19 21:41:06 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 739 ms |
| コンパイル使用メモリ | 84,444 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 06:40:08 |
| 合計ジャッジ時間 | 1,129 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include<random>
#include<ctime>
#include<cstdlib>
using namespace std;
int main(){
string s;
cin >> s;
for(int i=0; i<s.size(); i++){
int x=s[i]-'A'-i-1;
while(x<0){
x+=26;
}
s[i]='A'+x;
cout << s[i];
}
cout << endl;
return 0;
}
tenkyu9