結果
| 問題 |
No.445 得点
|
| ユーザー |
yokoshabel
|
| 提出日時 | 2016-12-31 21:46:31 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 652 bytes |
| コンパイル時間 | 3,960 ms |
| コンパイル使用メモリ | 75,356 KB |
| 実行使用メモリ | 41,832 KB |
| 最終ジャッジ日時 | 2024-12-16 04:36:34 |
| 合計ジャッジ時間 | 7,597 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 4 |
ソースコード
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;
}
}
yokoshabel