結果
| 問題 |
No.638 Sum of "not power of 2"
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-07-31 00:36:12 |
| 言語 | F# (F# 4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 10,676 ms |
| コンパイル使用メモリ | 187,284 KB |
| 実行使用メモリ | 34,888 KB |
| 最終ジャッジ日時 | 2024-10-09 19:22:42 |
| 合計ジャッジ時間 | 12,886 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (232 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
let n = stdin.ReadLine () |> int64
if n < 8L then
if n = 6L then
3, n-3L
else
-1, 0L
else
if n % 4L = 3L then
5, n-5L
else
3, n-3L
|> (fun (a, b) -> if a = -1 then printfn "-1" else printfn "%d %d" a b)