- 博客(10)
- 收藏
- 关注
原创 hduoj--考试排名--(一个疑惑)
刚开始写了一边,死活过不去,不知道错在哪里。然后改了一下time的重定义,把结果直接加给了time,居然就过了?请教一下各位这是为什么?改之前#include<bits/stdc++.h>using namespace std;typedef long long ll;struct node { char name[15]; int num=0; int time;//未初始化};bool cmp(node a, node b) { if (
2020-07-29 16:39:11
165
原创 杭电oj-find your present(2)-位异或运算符
find your present (2)Time Limit: 1000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10134 Accepted Submission(s): 2860Problem DescriptionIn the new year party, everybody will get a “special present”.Now it’s your t
2020-07-15 00:11:28
158
原创 hdoj-2093-考试排名 字符串,语法-2020.5.19
考试排名Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 29013 Accepted Submission(s): 9493Problem DescriptionC++编程考试使用的实时提交系统,具有即时获得成绩排名的特点。它的功能是怎么实现的呢?我们做好了题目的解答,提交之后,要么“AC”,要么错误,不管怎样错法,总是给你记上一笔,
2020-05-19 21:12:25
165
原创 E - Little Pony and Expected Maximum 周赛-概率,小数幂-2020.5.18
E - Little Pony and Expected MaximumTwilight Sparkle was playing Ludo with her friends Rainbow Dash, Apple Jack and Flutter Shy. But she kept losing. Having returned to the castle, Twilight Sparkle became interested in the dice that were used in the game.
2020-05-18 21:11:40
101
原创 D-world cup 周赛-循环-2020.5.18
D-world cupAllen wants to enter a fan zone that occupies a round square and has n entrances.There already is a queue of ai people in front of the i-th entrance. Each entrance allows one person from its queue to enter the fan zone in one minute.Allen use
2020-05-18 19:55:56
124
原创 C-Integer Game 周赛-博弈-2020.5.18
C-Integer GameTwo players, S and T, are playing a game where they make alternate moves. S plays first.In this game, they start with an integer N. In each move, a player removes one digit from theinteger and passes the resulting number to the other playe
2020-05-18 18:09:02
130
原创 B-simple game 周赛-B-水题-2020.5.18
B-simple gameOne day Misha and Andrew were playing a very simple game. First, each player chooses an integer in the range from 1 to n. Let’s assume that Misha chose number m, and Andrew chose number a.Then, by using a random generator they choose a rando
2020-05-18 17:10:06
148
原创 A-Dasha and stairs,周赛-A题-水题-2020.5.18
A-Dasha and stairsOn her way to programming school tiger Dasha faced her first test — a huge staircase!The steps were numbered from one to infinity. As we know, tigers are very fond of all striped things, it is possible that it has something to do with t
2020-05-18 17:03:13
125
原创 HDOJ 2072杭州电子科技大学 单词数 (C语言,集合,字符串)
@[纯C语言]#include <stdio.h>#include <string.h>int start(char s[]) { int i = 0; for (; s[i] != '\n'; i++) { if (s[i] != ' ') break; } return i;}int main() { char s[1100]; char word[100][100]; while (fgets(s, 1004, stdin) != 0) {//整
2020-05-14 17:21:58
239
原创 hduoj--大数相加-- 1002 -- A+B Problem Ⅱ(杭电OJ)
C++ 成功AC 简单易懂,适合初学者#include <iostream>#include <string>#include <stdio.h>using namespace std;int max(int a,int b) { if (a > b) return(a); else return(b);}int main...
2020-02-12 04:25:34
145
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人