题目 显然,彼佳所做的 \(a\) 件家务中最简单的家务的复杂度,和瓦西亚所做的 \(b\) 件家务中最难的家务的复杂度之差,就是 \(x\) 。 C++ #include<bits/stdc++.h> using namespace std; int n; int f[2005]; int a,b ...
分类:
其他好文 时间:
2021-05-03 12:54:09
阅读次数:
0
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:
系统相关 时间:
2021-05-03 12:39:24
阅读次数:
0
普通函数作用域 def outer(): outer_var = "i am is a outer var." def inner(): inner_var = "i am is a inner var." print(outer_var) print(inner_var) if __name__ ...
分类:
编程语言 时间:
2021-05-03 12:21:11
阅读次数:
0
import java.io.File; import java.io.IOException; public class FileDemo2 { public static void main(String[] args) throws IOException { //1.创建文件 File fi ...
分类:
编程语言 时间:
2021-05-03 12:20:19
阅读次数:
0
'''1.描述符是什么:描述符本质就是一个新式类,在这个新式类中,至少实现了__get__(),__set__(),__delete__()中的一个,这也被称为描述符协议__get__():调用一个属性时,触发__set__():为一个属性赋值时,触发__delete__():采用del删除属性时, ...
分类:
其他好文 时间:
2021-05-03 12:03:08
阅读次数:
0
public class oopDemo7 { public static void main(String[] args) { oopDemo71 oopDemo7 = new oopDemo71("罗hz"); System.out.println(oopDemo7.name); }} publ ...
分类:
其他好文 时间:
2021-05-03 11:56:18
阅读次数:
0
1 package com.pingfan.array; 2 3 import java.util.Arrays; 4 5 public class ArrayDemo6 { 6 public static void main(String[] args) { 7 int[] a = {1,2,3, ...
分类:
其他好文 时间:
2021-04-30 12:43:27
阅读次数:
0
类中多个Synchronized方法 下面给出一个例子,说明一个class中有两个方法synchronized的情况。它们互相阻挡的用法和上面的“一个方法有synchronized”的情况是一样的。例1.9.5:class A { public synchronized void f1() { fo ...
分类:
编程语言 时间:
2021-04-30 12:36:54
阅读次数:
0
1 package com.pingfan.array; 2 3 public class ArrayDemo2 { 4 public static void main(String[] args) { 5 //静态初始化:创建 + 赋值 6 int[] a ={1,2,3,4,5,6,7,8}; ...
分类:
其他好文 时间:
2021-04-30 12:34:23
阅读次数:
0
```javapublic class oopDemo6Student { String name; int age; public void study(){ System.out.println(this.name+"在学习"); }}//person >名字、生日、身高、体重//类(抽象) > ...
分类:
其他好文 时间:
2021-04-30 12:16:19
阅读次数:
0