結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2016-12-19 22:20:05 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 486 ms |
コンパイル使用メモリ | 55,272 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 02:27:22 |
合計ジャッジ時間 | 1,078 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream>int main() {int32_t L, M, N; // 100, 25, 1int32_t X = 0; // 1000std::cin >> L >> M >> N;// Exchange Nwhile (N >= 25) {N -= 25;M++;}// Exchange Mwhile (M >= 4) {M -= 4;L++;}while (L >= 10) {L -= 10;X++;}std::cout << L + M + N << std::endl;return 0;}