結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
![]() |
提出日時 | 2017-01-29 00:28:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 641 ms |
コンパイル使用メモリ | 57,284 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-23 21:39:27 |
合計ジャッジ時間 | 1,212 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 6 |
ソースコード
#include <iostream> #include <algorithm> #include <string> using namespace std; int main() { int l, m, n, c[3],ans; cin >> l; cin >> m; cin >> n; c[3] = n%25; c[2] = ((n - c[3])/25+m) % 4; c[1] = ((m - c[2])/4+l) % 10; ans = c[1] + c[2] + c[3]; cout << ans << endl; return 0; }