This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Genes { | |
public static void main(String[] args) { | |
Scanner stdin = new Scanner(System.in); | |
String gene = stdin.next(); | |
String result = findGene(gene, ""); | |
if (!result.isEmpty()) { | |
System.out.println(result); | |
} else { | |
System.out.println("No valid genes were detected."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Exercise08_09 { | |
public static void main(String[] args) { | |
Scanner stdin = new Scanner(System.in); | |
int[][] board = {{-1, -1, -1}, | |
{-1, -1, -1}, | |
{-1, -1, -1}}; | |
int turn = 1; | |
int player; | |
while (winner(board) == 3) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from subprocess import check_output | |
import datetime | |
#Globals | |
emailUsr = "" #sender email user name | |
emailAddr = "" #sender email address | |
emailPwd = "" #sender email password |