結果
| 問題 | 
                            No.1700 floor X
                             | 
                    
| コンテスト | |
| ユーザー | 
                             みーすけ
                         | 
                    
| 提出日時 | 2021-10-08 22:13:56 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 448 bytes | 
| コンパイル時間 | 2,144 ms | 
| コンパイル使用メモリ | 74,520 KB | 
| 実行使用メモリ | 60,692 KB | 
| 最終ジャッジ日時 | 2024-07-23 04:40:52 | 
| 合計ジャッジ時間 | 24,979 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 41 WA * 3 | 
ソースコード
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int t = sc.nextInt();
        long[] n=new long[t];
        for (int i = 0; i < t; i++) {
            n[i]=sc.nextLong();
        }
        
        for (int i = 0; i < t; i++) {
            String result = String.format("%d", (int)Math.sqrt(n[i]));
            System.out.println(result);
        }
    }
}
            
            
            
        
            
みーすけ