結果
問題 |
No.18 うーさー暗号
|
ユーザー |
![]() |
提出日時 | 2019-02-18 13:41:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 536 ms |
コンパイル使用メモリ | 56,428 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-05 21:06:15 |
合計ジャッジ時間 | 1,137 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 13 |
ソースコード
#include <iostream> #include <string> int main() { std::string S; std::cin >> S; for (int i = 0,n = (signed)S.size(); i < n; i++) { for (int j = 0; j <= i; j++) { if (S[i] == 'Z') { S[i] = 'A'; } else { S[i]++; } } } std::cout << S << std::endl; return 0; }