码迷,mamicode.com
首页 >  
搜索关键字:vitual judge    ( 1412个结果
520. Detect Capital
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
分类:Windows程序   时间:2020-01-24 10:44:58    阅读次数:98
PAT甲级——1035 Password (20分)
1035 Password (20分) To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some ...
分类:其他好文   时间:2020-01-24 00:29:37    阅读次数:109
PAT (Advanced Level) 1075 PAT Judge
题解 模拟。 题目有三种状态。 第一种为题目得到了一定的分数( >= 0); 第二种为题目提交过但是没有通过编译(代码中状态为 -2 ,输出对应 0 ); 第三种题目根本就没提交过(代码中状态为 -1 ,输出对应 ‘-’ )。 考生只要至少有一道题目满足第一种情况,即可将这位考生的信息输出出来。 代 ...
分类:其他好文   时间:2020-01-22 01:11:31    阅读次数:98
1075 PAT Judge (25point(s)) Easy twice agin *一些细节问题
基本思路: 还是简单的排序问题,但是需要注意的是一些基本的思路和细节点; 关键点: 1.关于开数组的问题,特别大的话尽量开常规数组,这样避免初始化时候resize不太方便; 2.关于结构体初始化,增加逻辑可读性,直接提出一个函数专门init; 3.注意题目的隐含条件,尤其是是否有重复输入的问题; 4 ...
分类:其他好文   时间:2020-01-19 23:56:32    阅读次数:148
js对于客户端的区分代码
//区分设备 function judge_decice() { let ua =navigator.userAgent.toLowerCase(); if(/android|adr/gi.test(ua)) { return 'android'; }else if( /\(i[^;]+;( U;) ...
分类:Web程序   时间:2020-01-17 13:07:26    阅读次数:90
LeetCode 679. 24 Game
原题链接在这里:https://leetcode.com/problems/24-game/ 题目: You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operate ...
分类:其他好文   时间:2020-01-16 14:51:19    阅读次数:97
3*n+1问题
#include <iostream>using namespace std; // 3n+1 问题// 猜想:对于任意大于 1 的自然数 n,若 n 为奇数,则将n变为3*n+1;否则将n变为n的一半,计算运算过程次数void judge(int n){ int count = 0; while ...
分类:其他好文   时间:2020-01-07 16:14:36    阅读次数:106
判断输入三个正整数是否构成直角三角形(是:Yes;不是:No;不构成三角形:Not a trangle)
#include <iostream> using namespace std;void judge_triangle(int L, int m, int s); // 若函数调用顺序和函数的编写不一致,需要声明函数// 三数排序--从大到小void trangle(int x, int y, in ...
分类:其他好文   时间:2020-01-06 19:26:49    阅读次数:99
shell编程题(十七)
题目: 终端输入一个文件名,判断是否是设备文件。 答案: #!/bin/bash echo -e "please input a filename to judge it is or not a device file.\n\n" read -p "Input a filename: " filen ...
分类:系统相关   时间:2020-01-05 15:26:09    阅读次数:92
哈理工 OJ 2301 行编辑器(java)
行编辑器 Time Limit: 1000 MS Memory Limit: 32768 K Total Submit: 513(211 users) Total Accepted: 297(201 users) Rating: Special Judge: No Description 这次我们要 ...
分类:编程语言   时间:2020-01-03 12:43:02    阅读次数:78
1412条   上一页 1 ... 4 5 6 7 8 ... 142 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!