結果
| 問題 | 
                            No.1915 Addition 
                             | 
                    
| コンテスト | |
| ユーザー | 
                             shojin_pro
                         | 
                    
| 提出日時 | 2022-04-29 22:03:56 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 436 bytes | 
| コンパイル時間 | 2,241 ms | 
| コンパイル使用メモリ | 74,196 KB | 
| 実行使用メモリ | 54,432 KB | 
| 最終ジャッジ日時 | 2024-06-29 03:30:39 | 
| 合計ジャッジ時間 | 5,420 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | WA * 10 | 
ソースコード
import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for(int i = 0; i < n; i++){
            int a = sc.nextInt();
            if(a % 2 == 0){
                System.out.println(a/2);
            }else{
                System.out.println(a*5);
            }
        }
    }
}
            
            
            
        
            
shojin_pro