Submission #27713
ソースコード
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 | import java.util.Arrays; import java.util.Scanner; public class Main{ static Scanner s= new Scanner(System.in); static int getInt(){ return Integer.parseInt(s.next());} public static void main(String[] $){ int []v= {s.next().length(),s.next().length(),s.next().length()}; boolean nafmo=v[0]==5&&v[1]==7&&v[2]==5; Arrays.sort(v); boolean bot =v[0]==5&&v[1]==5&&v[2]==7; yesno(bot); yesno(nafmo); } static void yesno(boolean f) { yesno(f, "YES" , "NO" ); } static void yesno(boolean f,String yes,String no) { System.out.println(f?yes:no); } } |
ステータス
項目 | データ |
---|---|
問題 | 0712 - Nafmo、575Botを見る |
ユーザー名 | fal_rnd |
投稿日時 | 2017-10-17 21:41:41 |
言語 | Java |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 587 Byte |
最大実行時間 | 93 ms |
最大メモリ使用量 | 16244 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in02.txt | AC | 93 ms | 14888 KB |
1
|
in04.txt | AC | 80 ms | 15884 KB |
1
|
in05.txt | AC | 69 ms | 14832 KB |
1
|
in07.txt | AC | 64 ms | 16036 KB |
1
|
in08.txt | AC | 67 ms | 15072 KB |
1
|
in09.txt | AC | 60 ms | 16228 KB |
1
|
in10.txt | AC | 87 ms | 16244 KB |
1
|
in11.txt | AC | 63 ms | 16168 KB |
1
|
in12.txt | AC | 71 ms | 15980 KB |
1
|
in13.txt | AC | 65 ms | 15624 KB |
1
|
in14.txt | AC | 66 ms | 15644 KB |
1
|