結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             neko_the_shadow
                         | 
                    
| 提出日時 | 2017-01-22 12:54:19 | 
| 言語 | Scheme  (Gauche-0.9.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 347 bytes | 
| コンパイル時間 | 180 ms | 
| コンパイル使用メモリ | 7,080 KB | 
| 実行使用メモリ | 16,128 KB | 
| 最終ジャッジ日時 | 2024-12-23 05:27:54 | 
| 合計ジャッジ時間 | 1,083 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 4 WA * 2 | 
ソースコード
(define (solve)
    (receive (x y)
             (apply values (map string->number (string-split (read-line) #\space)))
        (let ((r (ceiling->exact (sqrt (+ (expt x 2) (expt y 2))))))
            (if (= (+ (expt x 2) (expt y 2)) (expt r 2))
                (+ 1 (* 2 r))
                (* 2 r)))))
(begin
    (display (solve))
    (newline))
            
            
            
        
            
neko_the_shadow