14 条题解

  • 3
    @ 2023-5-11 21:34:33

    大家那么多人都发了题解,我也来凑个热闹(・∇・)

    #include<iostream>
    using namespace std;
    int main()
    {
    	int a;
    	cin >> a;
    	cout << a % 10;
    	return 0;
    }
    
    • 2
      @ 2023-1-23 14:47:17
      #include<iostream>
      using namespace std;
      int main(){
      	string a;
      	cin>>a;
      	cout<<a[a.size()-1];
      	return 0;
      }
      
      • 1
        @ 2025-3-17 21:45:09
        #include<iostream>
        #include <math.h>
        #include <stdio.h>
        using namespace std;
        int main(){
            int a;
            cin >> a;
            a = a%10;
            cout << a;
        	return 0;
        }
        
        • 0
          @ 2023-11-10 22:12:36
          #include<iostream>
          using namespace std;
          int main()
          {
          	int a;
          	cin >> a;
          	cout << a % 10;
          	return 0;
          }
          
          • 0
            @ 2023-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;
            }
            
            
            • 0
              @ 2023-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;
              }
              
              
              • 0
                @ 2023-5-27 13:17:39

                #include <bits/stdc++.h> using namespace std; int a,f; int main() { cin >> a; f = a % 10; cout << f; }

                • 0
                  @ 2022-10-13 7:02:03

                  #include <stdio.h> #include <iostream using namespace std; int main( ) { int n; cin>>n; x=n%10 cout<<x; }

                  • 0
                    @ 2022-10-6 16:42:14

                    #include

                    using namespace std;

                    int main() { int a;

                    cin >> a;
                    
                    cout << a % 10;
                    
                    return 0;
                    

                    }

                    • 0
                      @ 2022-8-23 10:14:07
                      #include <bits/stdc++.h>
                      
                      using namespace std;
                      
                      int main(void)
                      {
                      	int a;
                      	
                      	cin >> a;
                      	
                      	cout << a % 10;
                      	
                      	return 0;
                      }
                      
                      • 0
                        @ 2022-7-1 23:03:51

                        #include <stdio.h>

                        #include

                        using namespace std;

                        int main()

                        {

                        int a;
                        cin >> a ;
                        cout << a % 10;
                        

                        }

                        • 0
                          @ 2022-7-1 16:13:38

                          #include <stdio.h> #include using namespace std; int main() { int n; cin >> n; int x; x = n%10; cout << x; }

                          • 0
                            @ 2022-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;
                            }
                            
                            • -1
                              @ 2022-4-18 11:48:37

                              #include using namespace std; int main(){ int a; cin >> a ; while (a > 10){ a = a % 10; } cout << a << endl; }

                              • 1

                              信息

                              ID
                              849
                              时间
                              1000ms
                              内存
                              256MiB
                              难度
                              3
                              标签
                              递交数
                              987
                              已通过
                              556
                              上传者