码迷,mamicode.com
首页 >  
搜索关键字:int 取值范围    ( 143948个结果
values_list
def resum(request): usuari=Usuari.objects.order_by('usuari_id').values_list('usuari_id', flat=True) print(usuari) <QuerySet [1, 2, 3, 4, 5, 6, 50, 51] ...
分类:其他好文   时间:2021-06-06 19:24:17    阅读次数:0
神秘钥匙-快速幂
题目: https://ac.nowcoder.com/acm/contest/17345/D 思路: 或者是说倒序相加 1Cn1+2Cn2+3Cn3+....(n-1)cn(n-1)+nCnn nCnn+(n-1)Cnn-1+...................1Cn1 ans=[n*(2^n- ...
分类:其他好文   时间:2021-06-06 19:20:46    阅读次数:0
实验6 结构体
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 2 typedef struct student { int id; /* 学生学号 */ char name[20]; /* 学生姓名 */ char subject ...
分类:其他好文   时间:2021-06-06 19:16:23    阅读次数:0
Linux shutdown与close
shutdown和close都可以用来关闭TCP连接, 那么它们有区别与联系呢? 下面来研究下这个问题: 1. close 关闭连接和套接字. 成功返回0; 失败为-1, errno被设置 #include <unistd.h> int close(int fd); close会把描述符(sockf ...
分类:系统相关   时间:2021-06-06 19:09:08    阅读次数:0
六月五号算法和数据库
1.算法:查找数组中位数为偶数的个数问题1:如何计算位数通过while语句来对数字一直取整计数再通过对计算的数count对2取余来判断位数是否为偶数位最后将计算数count归零来用于下一个原数开始判断class solution{public int findNumbers(int []nums){ ...
分类:数据库   时间:2021-06-06 19:03:54    阅读次数:0
BigDecimal如何做加法除法
//超出double精准度后,如何做加法和除法 BigDecimal sumlong = BigDecimal.ZERO; BigDecimal sumlat= BigDecimal.ZERO; for (int i = 0; i < split.length-1; i++) { String[] ...
分类:其他好文   时间:2021-06-06 19:01:37    阅读次数:0
SYCOJ#1077、01字符串
题目—01字符串 (shiyancang.cn) 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 string a="0"; 7 int n; 8 cin>>n; 9 string ans=""; 10 if ...
分类:其他好文   时间:2021-06-06 19:01:00    阅读次数:0
SYCOJ#111、吉祥物
题目—吉祥物 (shiyancang.cn) 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n,x; 4 int pos(int n) 5 { 6 int s=1,j=1; 7 while(s<n) 8 { 9 s+=j++; 10 } ...
分类:其他好文   时间:2021-06-06 18:58:39    阅读次数:0
OOP summary
Preliminaries Linux Basics Change Password: passwd shutdown: sudo shutdown -h 3 (broadcast to all users in 3 mins) reboot: sudo reboot -r now create a ...
分类:其他好文   时间:2021-06-06 18:53:34    阅读次数:0
HelloWorld
随便新建一个文件夹,存放代码 新建一个java文件 文件后缀名为.java Hello.java 编写代码 public class Hello{ public static void main(String[] args){ System.out.print("hello world!"); } ...
分类:其他好文   时间:2021-06-06 18:52:26    阅读次数:0
143948条   上一页 1 ... 37 38 39 40 41 ... 14395 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!