結果
問題 | No.18 うーさー暗号 |
ユーザー | battamon |
提出日時 | 2014-11-09 13:18:38 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 374 ms |
コンパイル使用メモリ | 55,956 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 05:27:35 |
合計ジャッジ時間 | 850 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int n; string S; while( cin >> S ){ for( int i = 0; i < (int)S.size(); ++i ){ cout << (char)( 'A' + ( ( ( S[ i ] - 'A' ) - ( i + 1 ) ) % 26 + 26 ) % 26 ); } cout << endl; } return 0; }