当前位置:网站首页>ISBN number
ISBN number
2022-07-03 23:56:00 【< WRM>】
#include<bits/stdc++.h>
using namespace std;
int main() {
string str;
cin >> str;
int a[10];
int pos = 0;
for (int i = 0; i < str.size(); i++) {
if (isdigit(str[i])) {
a[pos++] = str[i] - 48;
}
}
int sum = 0;
for (int i = 0; i < 9; i++) {
sum = sum + a[i] * (i + 1);
}
char x;
if (sum % 11 == 10) {
x = 'X';
} else {
x = sum % 11 + 48;
}
if (x == str[str.size() - 1]) {
printf("Right\n");
} else {
for (int i = 0; i < str.size() - 1; i++) {
cout << str[i];
}
printf("%c\n", x);
}
}
边栏推荐
- Unity shader visualizer shader graph
- Recursive least square adjustment
- P3371 [template] single source shortest path (weakened version)
- Gossip about redis source code 73
- Entropy and full connection layer
- How will the complete NFT platform work in 2022? How about its core functions and online time?
- The upload experience version of uniapp wechat applet enters the blank page for the first time, and the page data can be seen only after it is refreshed again
- How to quickly build high availability of service discovery
- Investment demand and income forecast report of China's building ceramics industry, 2022-2028
- Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
猜你喜欢

It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something

Report on prospects and future investment recommendations of China's assisted reproductive industry, 2022-2028 Edition

Alibaba cloud container service differentiation SLO hybrid technology practice

Actual combat | use composite material 3 in application

How to make recv have a little temper?

Fluent learning (5) GridView

Idea integrates Microsoft TFs plug-in

How to write a good title of 10w+?
![[source code] VB6 chat robot](/img/89/46b67f627c8257eaddc70a247c9ba5.jpg)
[source code] VB6 chat robot

2/14 (regular expression, sed streaming editor)
随机推荐
Schematic diagram of crystal oscillator clock and PCB Design Guide
Unity shader visualizer shader graph
Kubedl hostnetwork: accelerating the efficiency of distributed training communication
Enter MySQL in docker container by command under Linux
[BSP video tutorial] stm32h7 video tutorial phase 5: MDK topic, system introduction to MDK debugging, AC5, AC6 compilers, RTE development environment and the role of various configuration items (2022-
Gossip about redis source code 81
Gossip about redis source code 73
Iclr2022: how does AI recognize "things I haven't seen"?
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
Cgb2201 preparatory class evening self-study and lecture content
C # basic knowledge (3)
Social network analysis -social network analysis
股票開戶傭金最低的券商有哪些大家推薦一下,手機上開戶安全嗎
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
ESP Arduino playing with peripherals (V) basic concept of interrupt and timer interrupt
2022.02.13
[note] glide process and source code analysis
Selenium library 4.5.0 keyword explanation (I)
Vscode regular match replace console log(.*)
[network security] what is emergency response? What indicators should you pay attention to in emergency response?