結果
| 問題 | No.338 アンケート機能 | 
| コンテスト | |
| ユーザー |  kenji_shioya | 
| 提出日時 | 2016-06-24 06:48:37 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 483 bytes | 
| コンパイル時間 | 3,500 ms | 
| コンパイル使用メモリ | 78,216 KB | 
| 実行使用メモリ | 41,488 KB | 
| 最終ジャッジ日時 | 2024-10-11 20:11:37 | 
| 合計ジャッジ時間 | 8,978 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 26 WA * 2 | 
ソースコード
import java.util.*;
public class Exercise119{
  public static void main (String[] args){
    Scanner sc = new Scanner(System.in);
    int ca = sc.nextInt();
    int cb = sc.nextInt();
    int min = 200;
    for(double i = 1; i < 200; i++){
      for(double j = 1; j < 200; j++){
        if(ca == (int)Math.round(i * 100 / (i + j)) && cb == (int)Math.round(j * 100 / (i + j))){
          min = Math.min(min, (int)(i + j));
        }
      }
    }
    System.out.println(min);
  }
}
            
            
            
        