摘要:
今日的简单一题 1 #include<iostream> 2 3 using namespace std; 4 5 int main() { 6 long a = 0, b = 0, c = 0; 7 int n = 0; 8 string judge[10]; 9 cin >> n; 10 for 阅读全文
摘要:
用C语言写的,逐个移动每一位的位置实现右移 C语言 1 #include<stdio.h> 2 3 void swap(int* n, int count,int num) { 4 int tmp = 0; 5 int i = 0; 6 int j = count - 2; 7 for (i = 0 阅读全文
摘要:
C/C++ 1 #include<iostream> 2 using namespace std; 3 4 int main() { 5 int n = 0; 6 cin >> n; 7 int b = n / 100; 8 int s = n / 10 % 10; 9 int g = n % 10 阅读全文
摘要:
C++ 1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 using namespace std; 5 bool cmp(int a, int b) { 6 return a > b; 7 } 8 int main( 阅读全文