結果

問題 No.637 X: Yet Another FizzBuzz Problem
ユーザー fal_rndfal_rnd
提出日時 2018-02-12 17:41:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 243 bytes
コンパイル時間 2,176 ms
コンパイル使用メモリ 73,800 KB
実行使用メモリ 57,504 KB
最終ジャッジ日時 2023-09-11 04:29:04
合計ジャッジ時間 7,710 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,360 KB
testcase_01 AC 129 ms
55,856 KB
testcase_02 AC 128 ms
55,928 KB
testcase_03 AC 128 ms
55,496 KB
testcase_04 AC 127 ms
55,552 KB
testcase_05 AC 125 ms
55,816 KB
testcase_06 AC 128 ms
55,452 KB
testcase_07 AC 125 ms
55,496 KB
testcase_08 AC 127 ms
55,460 KB
testcase_09 AC 127 ms
55,668 KB
testcase_10 AC 127 ms
55,196 KB
testcase_11 AC 127 ms
55,700 KB
testcase_12 AC 128 ms
57,504 KB
testcase_13 AC 127 ms
55,716 KB
testcase_14 AC 128 ms
55,632 KB
testcase_15 AC 128 ms
55,740 KB
testcase_16 AC 127 ms
55,512 KB
testcase_17 AC 127 ms
55,720 KB
testcase_18 AC 126 ms
55,220 KB
testcase_19 AC 130 ms
55,216 KB
testcase_20 AC 127 ms
55,744 KB
testcase_21 AC 128 ms
55,664 KB
testcase_22 AC 127 ms
55,508 KB
testcase_23 AC 126 ms
55,572 KB
testcase_24 AC 129 ms
55,428 KB
testcase_25 AC 130 ms
55,544 KB
testcase_26 AC 129 ms
53,912 KB
testcase_27 AC 129 ms
55,636 KB
testcase_28 AC 131 ms
55,292 KB
testcase_29 AC 130 ms
55,704 KB
testcase_30 AC 128 ms
55,696 KB
testcase_31 AC 130 ms
55,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class A{
	public static void main(String[]$){
		Scanner s=new Scanner(System.in);
		int r=0;
		for(int i=0;i<5;++i){
			int n=s.nextInt();
			r+=n%15==0?8:(n%3)*(n%5)==0?4:(""+n).length();
		}
		System.out.println(r);
	}
}
0