#22972: C++寫法 利用字元轉換


andy1105yo@gmail.com (劉安安)

學校 : 不指定學校
編號 : 99467
來源 : [180.176.66.1]
最後登入時間 :
2022-06-17 03:46:24
a009. 解碼器 -- ACM 458 | From: [36.237.199.224] | 發表日期 : 2020-10-15 00:05

#include <iostream>

using namespace std;

//k=-7

int main() {

char Input;

 

while(cin >> Input){

Input = (int)Input-7;

cout << (char)Input;

}

 

return 0;

}

 

 
ZeroJudge Forum