結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  suppy193 | 
| 提出日時 | 2015-05-27 16:59:15 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 5,000 ms | 
| コード長 | 303 bytes | 
| コンパイル時間 | 272 ms | 
| コンパイル使用メモリ | 20,736 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-23 02:04:39 | 
| 合計ジャッジ時間 | 833 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d", &L);
      |         ^~~~~~~~~~~~~~~
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d", &M);
      |         ^~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%d", &N);
      |         ^~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(void) {
	int L, L1, M, M1, N;
	scanf("%d", &L);
	scanf("%d", &M);
	scanf("%d", &N);
	M1 = N / 25;
	N %= 25;
	L1 = (M + M1) / 4;
	M = (M + M1) % 4;
	L = (L + L1) % 10;
	//printf("%d %d %d\n", L, M, N);
	//printf("%d %d\n", L1, M1);
	printf("%d\n", L + M + N);
	
	return 0;
}
            
            
            
        