Brackets Sequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 35049 Accepted: 10139 Special Judge Description Let us define a regular b ...
分类:
其他好文 时间:
2019-03-25 14:45:57
阅读次数:
159
int judge() { int v[13] = { 0 }; queue myq; myq.push(ans[0]); v[ans[0]] = 1; while (!myq.empty()) { int t = myq.front(); myq.pop(); for (int i = 1; i ... ...
分类:
其他好文 时间:
2019-03-16 18:07:21
阅读次数:
162
这里是 的 。 这儿主要存放本人的知识总结,以及一些有意思的题目。 " " _注:数论其实很有意思的。。。_ " " _注:题目来源于 , , 等Online Judge。_ 不定时更新。 ...
分类:
其他好文 时间:
2019-03-16 09:55:14
阅读次数:
187
作者水平有限,所发仅为个人愚见,如有明显谬误,望斧正 题目可转化为对于所给正整数N(1≤N≤1000),共有N个节点,编号从1-N。其中"相信"这一概念,可看作是一条连接两节点的有向边。如所给二维vector的trust向量数组,trust[i][0]表示有向边的起点,则trust[i][1]表示有 ...
分类:
其他好文 时间:
2019-02-24 21:41:10
阅读次数:
292
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa ...
分类:
其他好文 时间:
2019-02-24 18:46:38
阅读次数:
178
1 #include 2 #include 3 #include 4 using namespace std; 5 struct TNode{ 6 char id[20]; 7 int hh, mm, ss; 8 }temp, in, out; 9 bool Judge(TNode temp,TNo... ...
分类:
其他好文 时间:
2019-02-21 23:13:24
阅读次数:
220
1 #include 2 bool Judge(int A[], int num){ 3 for(int i = 0; i = 0; i--){ 25 printf("%d", A[i]); 26 if(i != 0) 27 printf(" "); 28 } 29 return 0; 30 } ...
分类:
其他好文 时间:
2019-02-21 23:12:25
阅读次数:
192
放在Virtual Judge上的专题: [题解][树状数组] POJ 2352 - Stars https://www.cnblogs.com/Kaidora/p/10389073.html [题解] [BFS] POJ 1426 - Find The Multiple https://www.c ...
分类:
其他好文 时间:
2019-02-17 20:36:29
阅读次数:
180
1 class Solution 2 { 3 public: 4 bool judge(TreeNode* root, int x, int y) 5 { 6 if(root!=NULL) 7 { 8 9 if(root->left&&root->right... ...
分类:
其他好文 时间:
2019-02-17 12:54:14
阅读次数:
420
"Excuses, Excuses!" Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 4701 Accepted: 1602 Description Judge Ito is having a problem with peop ...
分类:
其他好文 时间:
2019-02-16 09:33:33
阅读次数:
114