結果

問題 No.57 ミリオンダイス
ユーザー FVRChan
提出日時 2017-10-02 22:00:09
言語 Java
(openjdk 23)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 2,121 ms
コンパイル使用メモリ 74,520 KB
実行使用メモリ 41,524 KB
最終ジャッジ日時 2024-11-15 22:42:55
合計ジャッジ時間 3,875 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int n=sc.nextInt();
		if(n%2==0)
			System.out.println((int)(3.5*n));
		else
			System.out.println(3.5*n);
	}
}
0