3016 查找ASCII编码
#include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { char c; cin >> c; cout << int(c); //int强制把字符c转成对应的数字 return 0; }
#include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { char c; cin >> c; cout << int(c); //int强制把字符c转成对应的数字 return 0; }