摘要:
题目链接:https://www.nowcoder.com/practice/4b733a850c364c32b368555c8c2ec96b?tpId=40&tqId=21341&tPage=1&rp=1&ru=/ta/kaoyan&qru=/ta/kaoyan/question-ranking 阅读全文
摘要:
题目链接:https://www.nowcoder.com/practice/912b15e237ef44148e44018d7b8750b6?tpId=40&tqId=21346&tPage=1&rp=1&ru=/ta/kaoyan&qru=/ta/kaoyan/question-ranking 阅读全文
摘要:
题目链接:https://www.nowcoder.com/practice/776d401bf86d446fa783f0bef7d3c096?tpId=40&tqId=21381&tPage=3&rp=1&ru=%2Fta%2Fkaoyan&qru=%2Fta%2Fkaoyan%2Fquestio 阅读全文
摘要:
题目链接:https://www.nowcoder.com/practice/d2f088e655d44e4a85c16f7b99126211?tpId=40&tqId=21405&tPage=4&rp=1&ru=%2Fta%2Fkaoyan&qru=%2Fta%2Fkaoyan%2Fquestio 阅读全文
摘要:
题目链接:https://www.nowcoder.com/practice/20426b85f7fc4ba8b0844cc04807fbd9?tpId=40&tqId=21338&tPage=1&rp=1&ru=%2Fta%2Fkaoyan&qru=%2Fta%2Fkaoyan%2Fquestio 阅读全文
摘要:
1 %--------------------符号变/常量------------------- 2 3 %符号变量sym syms 4 a=sym('a'); 5 syms b; 6 7 %符号常量sym syms 8 c=sym('3'); 9 10 f1='3 * x + 4'; 11 12 syms x; 13 f2=3 * x ... 阅读全文
摘要:
1 %底层代码创建GUI 2 3 hf = figure(... 4 'Units','Normalized',... 5 'Color','w',... 6 'Position',[0.1 0.1 0.8 0.8]); 7 8 ha=axes(... 9 'Parent',hf,... 10 'U 阅读全文
摘要:
(1)二进制图 在二进制图中,像素的取值为两个离散数值0或1中的一个,0代表黑色,1代表白色 例 A=[0 0 1;1 1 0; 0 0 1];>> imshow(A,'InitialMagnification','fit') %调整合适的窗口显示A。 (2)索引图 索引图像包括一个数据矩阵X,一个 阅读全文
摘要:
继承 MyFrame的类 减少代码量 补: 经常用到的常量可以用一个类封装存储起来 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.Image; 7 impor 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.Image; 7 impor 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.Image; 7 import java.awt.event.WindowAdapter; 8 import ... 阅读全文
摘要:
1 package test; 2 import java.awt.Image; 3 import java.awt.image.BufferedImage; 4 import java.io.IOException; 5 import java.net.URL; 6 import javax.im 阅读全文
摘要:
1 package test; 2 import java.awt.Color; 3 import java.awt.Font; 4 import java.awt.Frame; 5 import java.awt.Graphics; 6 import java.awt.event.WindowAd 阅读全文
摘要:
1 package testDate; 2 //自定义异常 3 public class MyException extends Exception{ 4 public MyException(){ 5 6 } 7 public MyException(String message){ 8 super(message); ... 阅读全文
摘要:
1 package testDate; 2 import java.io.File; 3 import java.io.FileNotFoundException; 4 public class TestReadFile { 5 public static void main(String[] ar 阅读全文
摘要:
1 package testDate; 2 import java.io.FileNotFoundException; 3 import java.io.FileReader; 4 import java.io.IOException; 5 public class TestReadFile { 6 public static void main(String[] args)... 阅读全文
摘要:
1 package testDate; 2 import java.io.FileNotFoundException; 3 import java.io.FileReader; 4 import java.io.IOException; 5 public class TestReadFile { 6 阅读全文
摘要:
1 #include 2 #include 3 #include 4 using namespace std; 5 struct student 6 { 7 int num; 8 int score; 9 struct student *next; 10 }*head; 11 int main() 12 { 13 int n,m,l,nu,... 阅读全文
摘要:
关系代数是关系数据库系统查询语言的理论基础 一、关系代数的9种操作: 关系代数中包括了:并、交、差、乘、选择、投影、联接、除、自然联接等操作。 五个基本操作: 并(∪)、差(-)、笛卡尔积(×)、投影(σ)、选择(π) 四个组合操作: 交(∩)、联接(等值联接)、自然联接(R S)、除法(÷) 注2 阅读全文
摘要:
prognam segment main proc far assume cs:prognam start: push ds sub ax,ax push ax mov ch,4 mov bx,0001111000111100B rotate: mov cl,4 rol bx,cl mov al,b 阅读全文
摘要:
DATAS SEGMENT ;此处输入数据段代码 message db 'hello world!', 0dh, 0ah, 24h DATAS ENDS STACKS SEGMENT ;此处输入堆栈段代码 STACKS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DA 阅读全文
摘要:
题目链接:http://oj.jxust.edu.cn/problem.php?id=1386 qwn和Q伟N最近沉迷于Battle of Balls,天天翘课玩游戏。因为Q伟N太坑了,所以qwn决定弃游。于是乎到了木木店里买了n本书决定重返学霸之路,每本书价值ai(i<=n)。不过qwn被Batt 阅读全文
摘要:
题目链接:http://codeforces.com/problemset/problem/124/A Petr stands in line of n people, but he doesn't know exactly which position he occupies. He can sa 阅读全文
摘要:
题目链接:http://codeforces.com/problemset/problem/456/A One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the 阅读全文
摘要:
题目链接:http://codeforces.com/problemset/problem/237/A Valera runs a 24/7 fast food cafe. He magically learned that next day n people will visit his cafe 阅读全文
摘要:
#include <iostream> #include <string> #include <cstring> #include <cmath> #include <algorithm> #include <cstdio> using namespace std; #define N 20010 阅读全文
摘要:
题目链接:http://codeforces.com/problemset/problem/841/B Leha somehow found an array consisting of n integers. Looking at it, he came up with a task. Two p 阅读全文
摘要:
题目链接:http://codeforces.com/problemset/problem/841/A One day Kefa found n baloons. For convenience, we denote color of i-th baloon as si — lowercase le 阅读全文
摘要:
Manao is trying to open a rather challenging lock. The lock has n buttons on it and to open it, you should press the buttons in a certain order to ope 阅读全文
摘要:
You are a lover of bacteria. You want to raise some bacteria in a box. Initially, the box is empty. Each morning, you can put any number of bacteria i 阅读全文
摘要:
输入N求N的阶乘的准确值。 Input Output Input示例 Output示例 阅读全文
摘要:
输入N求N的阶乘的10进制表示的长度。例如6! = 720,长度为3。 Input Output Input示例 Output示例 阅读全文
摘要:
输入N求N的阶乘的10进制表示的长度。例如6! = 720,长度为3。 Input Output Input示例 Output示例 阅读全文
摘要:
按位与& 作用:1.与0相与迅速清零 2.保留位数 3.与1相与判断奇偶性 按位或| 作用:感觉并没有多大作用 按位异或^ 作用:定位反转 (交换值) a=a^b; b=a^b; a=a^b; 左移 :乘以2的n次方 右移 :整除2的n次方 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 const int N = 1000; 10 11 struct weapon{ 12 int price; 13 int atk; 14 ... 阅读全文
摘要:
1 #include <cstdio> 2 #include <iostream> 3 #include <cstring> 4 #include <string> 5 #include <cmath> 6 #include <algorithm> 7 using namespace std; 8 阅读全文
摘要:
阅读全文
摘要:
题目链接:http://abc070.contest.atcoder.jp/assignments A - Palindromic Number Time limit : 2sec / Memory limit : 256MB Score : 100 points Problem Statement 阅读全文
摘要:
题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1181 如果一个质数,在质数列表中的编号也是质数,那么就称之为质数中的质数。例如:3 5分别是排第2和第3的质数,所以他们是质数中的质数。现在给出一个数N,求>= 阅读全文