mirror of
https://github.com/Xevion/contest.git
synced 2025-12-16 08:11:26 -06:00
rename folders
This commit is contained in:
19
uil/october-2013/3/java/src/problem3.java
Normal file
19
uil/october-2013/3/java/src/problem3.java
Normal file
@@ -0,0 +1,19 @@
|
||||
import static java.lang.System.*;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class problem3 {
|
||||
public static void main(String[] args ) throws FileNotFoundException {
|
||||
// Constants
|
||||
File input = new File("input1.dat");
|
||||
Scanner read = new Scanner(input);
|
||||
int lines = read.nextInt();
|
||||
read.nextLine();
|
||||
|
||||
// Driver Code
|
||||
for (int i = 0; i < lines; i++)
|
||||
out.println(read.nextLine().length() <= 140 ? "tweet" : "not a tweet");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user