#33668: ans


j812018@nehs.hc.edu.tw (嗨)

學校 : 國立科學工業園區實驗高級中學
編號 : 152750
來源 : [101.10.45.143]
最後登入時間 :
2023-01-19 22:25:33
a009. 解碼器 -- ACM 458 | From: [111.243.24.96] | 發表日期 : 2023-01-19 23:46

#include <iostream>
#include <string>

using namespace std;
int main(){
    string a;
    getline(cin, a);


    for(int i = 0; i < x.length();i++){
       char temp;
       temp = a[i];
       temp = temp - 7;
       cout << temp;
    }
}

 
#33669: Re: ans


j812018@nehs.hc.edu.tw (嗨)

學校 : 國立科學工業園區實驗高級中學
編號 : 152750
來源 : [101.10.45.143]
最後登入時間 :
2023-01-19 22:25:33
a009. 解碼器 -- ACM 458 | From: [111.243.24.96] | 發表日期 : 2023-01-19 23:47

#include
#include

using namespace std;
int main(){
    string a;
    getline(cin, a);


    for(int i = 0; i < a.length();i++){
       char temp;
       temp = a[i];
       temp = temp - 7;
       cout << temp;
    }
}



 
ZeroJudge Forum