1 条题解
-
1
AC代码!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#include <bits/stdc++.h> using namespace std; int main() { string s1,s2; cin >> s1 >> s2; int u = 0; for (int i = 0;i < min(s1.length(),s2.length());i++) { if (s1[i] == s2[i]) { continue; } else { u = s1[i] - s2[i]; break; } } cout << u; }
- 1
信息
- ID
- 844
- 时间
- 1000ms
- 内存
- 512MiB
- 难度
- 5
- 标签
- 递交数
- 28
- 已通过
- 15
- 上传者