結果
問題 | No.81 すべて足すだけの簡単なお仕事です。 |
ユーザー | 👑 tatt61880 |
提出日時 | 2019-03-13 21:09:08 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
WA
|
実行時間 | - |
コード長 | 496 bytes |
コンパイル時間 | 2,771 ms |
コンパイル使用メモリ | 162,260 KB |
実行使用メモリ | 4,356 KB |
最終ジャッジ日時 | 2023-10-14 15:23:59 |
合計ジャッジ時間 | 5,202 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,352 KB |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | AC | 2 ms
4,352 KB |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
4,352 KB |
testcase_05 | AC | 2 ms
4,352 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 2 ms
4,348 KB |
testcase_14 | AC | 2 ms
4,348 KB |
testcase_15 | AC | 2 ms
4,348 KB |
testcase_16 | AC | 2 ms
4,352 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 2 ms
4,352 KB |
testcase_26 | AC | 2 ms
4,352 KB |
testcase_27 | WA | - |
testcase_28 | AC | 2 ms
4,352 KB |
testcase_29 | WA | - |
ソースコード
func main() var N: int :: cui@input().toInt(&) var sum: int for(1, N) var _: [][]char :: cui@input().split(".") var isNegative: bool :: _[0][0] = '-' if(^_ = 2) do sum :+ _[0].toInt(&) * 10 ^ 10 for i(0, ^_[1] - 1) do sum :+ (isNegative ?(-1, 1)) * (_[1][i] $ int - '0' $ int) * 10 ^ (9 - i) end for else do sum :+ _[0].toInt(&) * 10 ^ 10 end if end for var a: int :: sum / 10 ^ 10 var b: int :: sum % 10 ^ 10 do cui@print("\{a}.\{b.toStrFmt("010d")}\n") end func