Andrew-Malcom

Andrew-Malcom : 11111111111111111111111111111111111111111
3 年,9 月前

#include <bits/stdc++.h> using namespace std ; vector < string > year1 = { "2" , "3" , "4" , "5" , "6" , "7" , "8" , "9" }; vector < string > year2 = { "0" , "1" , "2" , "3" , "4" , "5" }; vector < string > year3 = { "0" , ...查看全文
Andrew-Malcom : EOJ 徒弟的下山之路(广度优先搜索+优先队列)
4 年,1 月前

include #include < queue > #include < cstdio > #include < cstdlib > #include < cctype > #include < cstring > #include < string > using namespace std ; // bfs const int INF = 0x3f3f3f ; const int dx [] = { 0 , 0 , 1 ...查看全文
Andrew-Malcom : 如何用起泡法进行数据排序?
4 年,6 月前

include int main() { int a[3]; int i, j, t; for (i = 0; i < 3; i++) scanf(“%d”, &a[i]); for(j=0;j<3;j++) { for (i = 0; i < 2 - j; i++) { if (a[i] > a[i + 1]) { t ...查看全文