結果
| 問題 |
No.18 うーさー暗号
|
| コンテスト | |
| ユーザー |
moshiya02
|
| 提出日時 | 2018-03-15 20:47:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 512 ms |
| コンパイル使用メモリ | 56,288 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-21 10:05:46 |
| 合計ジャッジ時間 | 1,122 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 11 |
ソースコード
#include<iostream>
using namespace std;
int main(){
string s;
cin >> s;
string std;
int i;
char tmp;
for(i=0;i<s.length();i++){
tmp = s[i] -'A' - (i+1) + 26;
tmp %= 26;
std += tmp + 'A';
}
cout << std << endl;
return 0;
}
moshiya02