結果
| 問題 |
No.18 うーさー暗号
|
| コンテスト | |
| ユーザー |
00Asage00
|
| 提出日時 | 2017-01-21 19:27:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 399 bytes |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 63,604 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 04:22:25 |
| 合計ジャッジ時間 | 1,094 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 8 |
ソースコード
#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++) {
s[i] = s[i] - ( i + 1 ) ;
for (int b = 0; s[i] < 'A'; b++) {
s[i] += 26;
}
}
output();
return 0;
}
00Asage00