結果

問題 No.445 得点
コンテスト
ユーザー yokoshabel
提出日時 2016-12-31 21:46:31
言語 Java
(openjdk 25.0.2)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
WA  
実行時間 -
コード長 652 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,368 ms
コンパイル使用メモリ 83,016 KB
実行使用メモリ 42,356 KB
最終ジャッジ日時 2026-05-26 09:59:22
合計ジャッジ時間 4,567 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import static java.lang.System.out;
import java.util.Scanner;

public class No445{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String sA=sc.next();
		String sB=sc.next();
		int n=toI(sA,6);
		int k=toI(sB,1000);
		int f=calc(n,k);
		if(f==0){out.println("error");}
		else{out.println(f);}
		sc.close();
	}
	
	private static int toI(String a,int max){
		try{
			int i=Integer.parseInt(a);
			if(i<=max){return i;}else{return 0;}
		}catch(NumberFormatException e){return 0;}
	}
	
	private static int calc(int n,int k){
		double df=0;
		int n5=50*n;
		df=n5+Math.floor(n5/(0.8+0.2*k));
		int f=(int)df;
		return f;
	}
}
0