13 条题解
-
3Atterger(liyuwen) LV 5 @ 2023-5-11 21:34:33
大家那么多人都发了题解,我也来凑个热闹(・∇・)
#include<iostream> using namespace std; int main() { int a; cin >> a; cout << a % 10; return 0; }
-
22023-1-23 14:47:17@
#include<iostream> using namespace std; int main(){ string a; cin>>a; cout<<a[a.size()-1]; return 0; }
-
02023-11-10 22:12:36@
#include<iostream> using namespace std; int main() { int a; cin >> a; cout << a % 10; return 0; }
-
02023-8-23 13:49:48@
Note: ****************************************/ #include <queue> #include <math.h> #include <stack> #include <vector> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <cstring> #include <algorithm> #define int long long using namespace std; const int N = 1e6 + 10; const int INF = 0x3f3f3f3f; int n; signed main(){ cin >> n; cout << n % 10 << endl; return 0; }
-
02023-6-1 21:12:02@
#include <iostream> #include <bits/stdc++.h> using namespace std; const int N=1e7+10; const int INF=0x3f3f3f3f; int main() { int a; cin>>a; cout<<a%10; }
-
02023-5-27 13:17:39@
#include <bits/stdc++.h> using namespace std; int a,f; int main() { cin >> a; f = a % 10; cout << f; }
-
02022-10-13 7:02:03@
#include <stdio.h> #include <iostream using namespace std; int main( ) { int n; cin>>n; x=n%10 cout<<x; }
-
02022-10-6 16:42:14@
#include <iostream>
using namespace std;
int main() { int a;
cin >> a; cout << a % 10; return 0;
}
-
02022-8-23 10:14:07@
#include <bits/stdc++.h> using namespace std; int main(void) { int a; cin >> a; cout << a % 10; return 0; }
-
02022-7-1 23:03:51@
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int a; cin >> a ; cout << a % 10;
}
-
02022-7-1 16:13:38@
#include <stdio.h> #include <iostream> using namespace std; int main() { int n; cin >> n; int x; x = n%10; cout << x; }
-
02022-1-25 10:15:08@
#include <stdio.h> #include <iostream> using namespace std; int main() { int n; cin >> n; int x; x = n%10; cout << x; }
-
-12022-4-18 11:48:37@
#include<iostream> using namespace std; int main(){ int a; cin >> a ; while (a > 10){ a = a % 10; } cout << a << endl; }
- 1
信息
- ID
- 849
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 3
- 标签
- 递交数
- 868
- 已通过
- 483
- 上传者