返回列表 發帖
  1. ABADADAAAD
複製代碼

TOP

本帖最後由 李知易 於 2025-3-8 15:51 編輯
  1. D B
  2. A
  3. D C
  4. A
  5. C B
  6. A
  7. B
  8. D B
  9. A
  10. A
複製代碼

TOP

  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int a[9];
  4. int s;
  5. int n=0;
  6. string str="0000000000ABCDEFGHJKLMNPQRSTUVXYWZIO";
  7. int main()
  8. {
  9.     while(cin>>s)
  10.     {
  11.         for(int i=8; i>=0; i--)
  12.         {
  13.             a[i]=s%10;
  14.             s/=10;
  15.         }
  16.         for(int i=0; i<8; i++)
  17.             n+=a[i]*(8-i);
  18.         for(int i=10; i<36; i++)
  19.         {
  20.             if(10-(((i%10)*9+(i/10)*1+n)%10)==a[8])
  21.                 cout<<str[i];
  22.             else
  23.                 continue;
  24.         }
  25.         cout<<endl;
  26.         n=0;
  27.     }
  28.     return 0;
  29. }
複製代碼

TOP

返回列表