結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2025-01-27 08:45:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 669 ms |
コンパイル使用メモリ | 58,336 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-27 08:45:58 |
合計ジャッジ時間 | 1,346 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%d%d%d",&l,&m,&n); | ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include<iostream>#include<cassert>#define rep(i,n) for(i=0;i<(int)(n);i++)using namespace std;typedef long long ll;typedef unsigned long long ull;int l,m,n;int main(){scanf("%d%d%d",&l,&m,&n);m+=n/25;n%=25;l+=m/4;m%=4;l%=10;printf("%d\n",l+m+n);return 0;}