結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2017-03-09 16:53:33 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 266 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 00:10:33 |
合計ジャッジ時間 | 826 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 9 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d%d",&l,&m,&n); | ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int s=0,l,m,n,M; scanf("%d%d%d",&l,&m,&n); n=n%25; M=((m+n/25)*25)/100; m=((m+n/25)*25)%100; l=(((l+M)*100)%1000)/100; // printf("l=%d m=%d n=%d",l,m,n); printf("%d",l+m+n); return 0; }