結果
問題 |
No.18 うーさー暗号
|
ユーザー |
![]() |
提出日時 | 2015-11-01 04:18:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 456 ms |
コンパイル使用メモリ | 55,232 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 06:45:45 |
合計ジャッジ時間 | 1,001 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 13 |
ソースコード
#include<iostream> #include<string> using namespace std; int main() { string str1; char str2[1025]; cin >> str1; for(int i=0; i<str1.length(); i++){ str2[i] = 'A' + ((str1[i] - 'A') + (i + 1))%26; } str2[str1.length()] = '\0'; cout << str2 << endl; return 0; }