![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
cn.llonvne
某不知名大学计算机专业学生
个人账号
更新一下自己脑洞和学习记录(不一定要价值)
目前在学 C++ Python Linux
展开
-
PTA - BasicLevel - 1013 数素数
#include "bits/stdc++.h"using namespace std;struct number{ int origin; int restaAfterDivideBy5; bool exist = false;};int main(){ int N; cin >> N; int result[5] = {0}; bool exist[5] = {false}; int k = 1; // Coeff.原创 2021-11-22 09:04:17 · 447 阅读 · 0 评论 -
UVa - 10474 - Where is the Marble? AC代码分享
#include "bits/stdc++.h"using namespace std;int main(){ int N,Q; int caseCount = 1; int first = 1; while(scanf("%d %d",&N,&Q) && N && Q){ if (first){ printf("CASE# %d:",caseCount++); .原创 2021-08-09 14:51:52 · 116 阅读 · 0 评论 -
UVa - 1588 - KickDown AC代码分享
注意该解题方法并不优秀有代码过长和代码冗余的缺点,仅作为AC代码参考,可能后期会修改。#include "bits/stdc++.h"using namespace std;#define INPUT_ERROR (-1)#define INPUT_OVER (1)#define MAX_LENGTH 105#define MATCH_MAX_SIZE 3char upLine[MAX_LENGTH];char downLine[MAX_LENGTH];int upLine原创 2021-08-05 14:13:38 · 93 阅读 · 0 评论 -
UVA - 232 - Crossword Answers AC代码分享
#include "bits/stdc++.h"using namespace std;#define INPUT_STOP (0)#define INPUT_OVER (1)#define MATRIX_MAX_SIZE (10)#define IS_STARTPOS (1)#define NOT_STARTPOS (0)#define BLACKBLOCK ('*')#define NO_WHITE_IN_UPORLEFT (1)#define WHITE_IN_UPORLEFT .原创 2021-08-04 14:11:08 · 128 阅读 · 0 评论