诗云panther
诗云panther
全部文章
题解
生活 篮球(1)
归档
标签
去牛客网
登录
/
注册
诗云panther的博客
全部文章
/ 题解
(共80篇)
题解 | #计算商场折扣#
来自专栏
import java.util.*; public class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int price = console.nextInt...
Java
2021-12-20
1
474
题解 | #交换变量值#
来自专栏
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextI...
Java
2021-12-20
3
531
题解 |
来自专栏
#include #include #include <stdlib.h> #include #include #include // std::reverse using namespace std; string toHexString(int n); int mai...
C++
2021-10-22
1
537
题解 |
来自专栏
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double d= scanner.nex...
Java
2021-10-22
61
3401
题解 | #数独#
来自专栏
#include <iostream> #include <vector> using namespace std; int row[9][10] = {0}; int col[9][10] = {0}; int block[9][10] = {0}; int res[9...
C++
2021-10-17
1
671
题解 | #斐波拉契加强版#
来自专栏
class Fibonacci { int tmp[2][2], now[2][2]; inline int addmul(int a, int m0, int m1) { return (a + (long long) m0 * m1) %...
C++
2021-10-17
1
664
题解 | #平均年龄#
来自专栏
#include <stdio.h> #include <math.h> float getage(int w,float y,double x,int newage) { return (1-x)*(y+1)+x*newage; } int main() { in...
C++
2021-10-17
1
709
题解 | #小米Git#
来自专栏
class Solution { public: /** * 返回git树上两点的最近分割点 * * @param matrix 接邻矩阵,表示git树,matrix[i][j] == '1' 当且仅当git树中第i个和第j个节点有连接,节点0为git树的跟节...
C++
2021-10-17
1
716
题解 | #表达式合法判断#
来自专栏
class ChkExpression { public: bool chkLegal(string A) { // write code here int num = A.length(); int arr[8] = {0}; ...
C++
2021-10-17
1
572
题解 | #非递减序列#
include<stdio.h> int main(){ int a[1000],c; int i=0,n=0,t=0; while(scanf("%d",&c)!=EOF) { a[n]=c; n++; ...
2021-08-29
2
459
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页