結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
mattun_sec
|
| 提出日時 | 2017-05-26 00:22:25 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 04:45:49 |
| 合計ジャッジ時間 | 809 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <stdio.h>
int main(void) {
int L,M,N;
scanf("%d", &L);
scanf("%d", &M);
scanf("%d", &N);
while(N >= 25) {
N -= 25;
M++;
}
while(M >= 4) {
M -= 4;
L++;
}
while(L >= 10) {
L -= 10;
}
int total;
total = L + M + N;
printf("%d\n", total);
return 0;
}
mattun_sec