結果
| 問題 | 
                            No.312 置換処理
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kiridaruma
                         | 
                    
| 提出日時 | 2015-12-07 15:39:29 | 
| 言語 | D  (dmd 2.109.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 310 bytes | 
| コンパイル時間 | 821 ms | 
| コンパイル使用メモリ | 97,088 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-12 02:48:59 | 
| 合計ジャッジ時間 | 2,367 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 30 WA * 15 | 
ソースコード
import std.stdio, std.conv, std.string, std.math;
void main() {
      ulong n = readln.chomp.to!ulong;
      ulong max = n.to!real.sqrt.to!ulong;
      ulong res;
      for(ulong cnt = max; cnt > 2; cnt--){
            if(n % cnt == 0){
                  res = cnt;
            }
      }
      res.writeln;
}
            
            
            
        
            
kiridaruma