結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2020-06-12 22:27:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 351 bytes |
コンパイル時間 | 1,817 ms |
コンパイル使用メモリ | 165,192 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 05:18:41 |
合計ジャッジ時間 | 2,363 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 10 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ int l, m, n; cin >> l >> m >> n; int lcnt, mcnt, ncnt; lcnt = l % 10; mcnt = (m % 4) + (l / 10); ncnt = (n % 10) + (m / 4); int cnt = lcnt + mcnt + ncnt; cout << cnt << endl; return 0; }