結果
問題 | No.128 お年玉(1) |
ユーザー |
|
提出日時 | 2025-01-18 10:30:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 563 ms |
コンパイル使用メモリ | 59,148 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-18 10:30:50 |
合計ジャッジ時間 | 2,006 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%lld%d",&n,&m); | ~~~~~^~~~~~~~~~~~~~~~
ソースコード
#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;ll n;int m;int main(){scanf("%lld%d",&n,&m);printf("%lld\n",1000*((n/1000)/m));return 0;}