I'm trying to solve the problem 2253 - Password Validator , but it is giving 10% wrong answer, but all my tests are working, can anyone find the error?
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int validade(c...
Can I use ".find" to make the program search for a word within a typed text and say whether it exists or not (true or false) and in which line of text it is located, if not, which command use to do this?
What I already have:
a = str(input())
#...
I'm trying for several consecutive lines with a single string along with the .format method, but I can not.
a=input("digite algo; ")
print("""contem maiusculos:{} contem: {}n\contem números: {} contem
alfanumericos: {}""".format(a.i...
I have the following div with information
<div class="endereco-item">
<h2 class="azulclaro identify">Casa</h2>
<div class="entrelinha_0"></div>
<div class="font_15"></div>
<div class="fo...
I'm working with metadata of an image extracted in Json format. One of these data is a base64 binary string . I have read in a documentation that these values are 16 bits . Is there any way I can decode them and send them to an array automatic...
I'm trying this code, but it does not work.
public class MesDias {
public static void main(String[] args) {
// Array String byte
String Mes = {Jan, Fev, Mar, Abr, Mai, Jun, Jul, Ago, Set, Out, Nov, Dez};
byte[] Di...
matriz = []
def create_matriz(a, b):
for contador in range(a):
matriz.append( [0] * b )
def print_matriz(txt):
cont = 0
for j in range(a):
for i in range(b):
if txt[cont] == "0":
matriz[i][...
How do I remove spaces from a text file? I have the following text file:
LC1 00019 1 31012012 00001 00243206
I uploaded and put the following code:
$abrirArquivo = fopen($uploadArquivo, "r");
wh...
I have a form that I look for the path of a file in .mdb (Access database), however I wanted to know how I can limit and exactly get the string of the file between the last bar of OpenFileDialog and the point of .mdb .
S...
I am manipulating a string with a loop for... that generates a new string of it, starting and ending of a certain position (would be "Hello" in that case). >
When I compare the return of the manipulation with another string con...