結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 2018-06-02 04:58:04 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 4,033 ms |
コンパイル使用メモリ | 65,452 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 07:13:00 |
合計ジャッジ時間 | 4,073 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import strutils, mathconstn = 3t = [10, 4, 25]var LMN: array[n , int]for i in countup(0, n - 1):LMN[i] = stdin.readLine.parseIntfor i in countdown(n - 1, 0):if i != 0: LMN[i - 1] += LMN[i] div t[i]LMN[i] = LMN[i] mod t[i]echo LMN.sum