序号 |
标题 |
代码 |
编程语言 |
最后编辑时间 |
浏览次数 |
21
|
111
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
div{
width: 100px;
height: 100px;
background: #FF0000;
position: absolute;
border-radius: 50%;
}
</style>
<script type="text/javascript">
window.onload=function(){
//onmousemove:当鼠标在一个元素上面移动的时候触发
var oDiv=document.getElementById("div1");
var i=0;
document.onmousemove=function(ev){
var ev=ev || event;
//document.title=i++;
var scrollTop=document.documentElement.scrollTop || document.body.scrollTop;
oDiv.style.left=ev.clientX+'px';
oDiv.style.top=ev.clientY+scrollTop+'px';
console.log(oDiv.style.top);
console.log(scrollTop);
}
}
</script>
</head>
<body>
<div id="div1"></div>
</body>
</html>
|
HTML/CSS/JS
|
2017-06-20 15:47:15
|
403
|
22
|
111
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
div{
width: 100px;
height: 100px;
background: #FF0000;
position: absolute;
border-radius: 50%;
}
</style>
<script type="text/javascript">
window.onload=function(){
//onmousemove:当鼠标在一个元素上面移动的时候触发
var oDiv=document.getElementById("div1");
var i=0;
document.onmousemove=function(ev){
var ev=ev || event;
//document.title=i++;
var scrollTop=document.documentElement.scrollTop || document.body.scrollTop;
oDiv.style.left=ev.clientX+'px';
oDiv.style.top=ev.clientY+scrollTop+'px';
console.log(oDiv.style.top);
console.log(scrollTop);
}
}
</script>
</head>
<body>
<div id="div1"></div>
</body>
</html>
|
HTML/CSS/JS
|
2017-06-20 15:47:17
|
408
|
23
|
v xcxc
|
#include<iostream>
using namespace std;
int main()
{
for(int i=1;i<100;i++) {
int sum=0;
for(int j=i;j<100;j++) {
sum+=j;
if(sum>236)
break;
if(sum==236)
cout<<i<<"->"<<j<<endl;
}
}
return 0;
}
|
C/C++
|
2017-06-21 04:36:55
|
389
|
24
|
2333
|
<?php
/**
* Created on: 2016年10月14日 18:10:07
* Author: Guest
* Copyright (c) 2016, tool.usta.wiki , All Rights Reserved.
*/
echo 'Hello World!';
?>
|
PHP
|
2017-06-21 04:36:57
|
326
|
25
|
大是大非
|
/**
* Created on: 2017年05月31日 15:22:41
* Author: Guest
* Copyright (c) 2017, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2017-06-21 04:36:59
|
339
|
26
|
作者真懒,题目都不写 ╮(╯_╰)╭
|
/**
* Created on: 2017年09月05日 10:36:47
* Author: Guest
* Copyright (c) 2017, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2017-09-05 10:36:52
|
369
|
27
|
二路归并算法合并两个有序表
|
/**
* Created on: 2016年10月10日 20:42:56
* Author: Guest
* Copyright (c) 2016, tool.usta.wiki , All Rights Reserved.
* 有两个有序表A和B,且A、B不存在重复元素,将他们合并成一个有序表C
* 二路归并算法
*/
#include<iostream>
#include<algorithm>
using namespace std;
const int SIZE=5;
int A[SIZE+1]={1,3,5,7,8},B[SIZE+1]={2,4,6,9,10};
int C[SIZE*2+1];
void UnionList(int A[],int B[],int C[]){
int i=0,j=0,k=0;
while(i<SIZE&&j<SIZE){
if(A[i]<B[j]){
C[k]=A[i];
i++;
k++;
}else{
C[k]=B[j];
j++;
k++;
}
}
while(i<SIZE){
C[k]=A[i];
i++;
k++;
}
while(j<SIZE){
C[k]=B[j];
j++;
k++;
}
}
int main(){
int A[SIZE+1]={1,3,5,7,8},B[SIZE+1]={2,4,6,9,10};
UnionList(A,B,C);
for (int i = 0; i < SIZE*2; i++) {
cout << C[i] << " ";
}
return 0;
}
|
C/C++
|
2017-12-26 17:46:27
|
426
|
28
|
作者真懒,题目都不写 ╮(╯_╰)╭
|
/**
* Created on: 2018年03月23日 15:13:44
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello World!");
}
}
|
Java
|
2018-03-23 15:13:56
|
378
|
29
|
作者真懒,题目都不写 ╮(╯_╰)╭
|
/**
* Created on: 2018年04月02日 21:43:14
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello World!");
}
}
|
Java
|
2018-04-02 21:43:20
|
286
|
30
|
链表
|
/**
* Created on: 2016年09月18日 18:29:35
* Author: Guest
* Copyright (c) 2016, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
typedef struct {
char key[15]; //关键字
char name[20];
int age;
} DATA; //数据结点类型
#include <stdlib.h>
typedef struct Node {
DATA data;
struct Node *next;
} ChainListType;
ChainListType *ChainListAddEnd(ChainListType *head,DATA data); //添加结点到链表末尾
ChainListType *ChainListAddFirst(ChainListType *head,DATA data); //添加结点到链表首部
ChainListType *ChainListFind(ChainListType *head,char *key); //按关键字在链表中查找内容
ChainListType *ChainListInsert(ChainListType *head,char *findkey,DATA data); //插入结点到链表指定位置
int ChainListDelete(ChainListType *head,char *key);//删除指定关键字的结点
int ChainListLength(ChainListType *head);//获取链表结点数量
//#include "2-5 ChainList.c"
#include <string.h>
ChainListType *ChainListAddEnd(ChainListT ...
|
C/C++
|
2018-04-06 17:59:30
|
301
|
31
|
作者真懒,题目都不写 ╮(╯_╰)╭
|
/**
* Created on: 2018年04月10日 21:41:12
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2018-04-10 21:41:22
|
303
|
32
|
作者真懒,题目都不写 ╮(╯_╰)╭
|
/**
* Created on: 2018年04月13日 17:39:02
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2018-04-13 17:39:19
|
298
|
33
|
hello
|
/**
* Created on: 2018年04月20日 13:37:15
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2018-04-20 13:37:31
|
303
|
34
|
hello
|
/**
* Created on: 2018年04月20日 13:37:15
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2018-04-20 13:38:01
|
327
|
35
|
手动阀
|
/**
* Created on: 2018年07月24日 11:31:56
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2018-07-24 11:46:13
|
263
|
36
|
作者真懒,题目都不写 ╮(╯_╰)╭
|
object file {
def main(args:Array[String])
{
println("Hello World!")
}
}
|
Scala
|
2018-08-01 13:41:54
|
269
|
37
|
作者真懒,题目都不写 ╮(╯_╰)╭
|
/**
* Created on: 2018年08月12日 12:16:43
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2018-08-12 12:16:49
|
304
|
38
|
aaa
|
/**
* Created on: 2018年08月29日 11:49:35
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
public class HelloWorld {
public static void main(String []args) {
System.out.println("Hello !");
}
}
|
Java
|
2018-08-29 11:50:09
|
307
|
39
|
你好
|
/**
* Created on: 2018年09月11日 15:27:08
* Author: Guest
* Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
*/
#include <stdio.h>
int main()
{
// 我的第一个 C 程序
printf("Hello, World! \n");
return 0;
}
|
C/C++
|
2018-09-11 16:11:33
|
226
|
40
|
111
|
# Created on: 2018年09月11日 16:12:29
# Author: Guest
# Copyright (c) 2018, tool.usta.wiki , All Rights Reserved.
#!/usr/bin/python
print("Hello, World!");
|
Python3
|
2018-09-11 16:56:51
|
293
|