-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.java
More file actions
27 lines (24 loc) · 874 Bytes
/
solution.java
File metadata and controls
27 lines (24 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.io.*;
/*
* Modifiez ce fichier si votre solution est en Java.
* Ce programme est un court exemple du protocol et d'une réponse au
* premier challenge "Ping".
* Modifiez "run.sh" pour compiler et exécuter ce programme java et
* exécutez la suite de test avec la commande "./runner ./run.sh"
*
* Pour l'exemple en python regardez "solution.py". Pour d'autre langage,
* faites un programme qui lit et écrit par les entrées et sorties standard
* et modifier "run.sh" pour compiler et exécuter votre programme.
*
* N'OUBLIER PAS DE "FLUSHER" VOS SORTIES!
*/
public class solution {
public static void main(String[] args) {
try{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] data = reader.readLine().split(":");
System.out.println(data[1]);
} catch(IOException e) {
}
}
}