結果
問題 | No.666 1000000007で割るだけ |
ユーザー |
![]() |
提出日時 | 2025-03-14 11:53:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 111 bytes |
コンパイル時間 | 411 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-14 11:53:46 |
合計ジャッジ時間 | 1,672 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] 6 | printf("%d",(A * B) % 1000000007); | ~^ ~~~~~~~~~~~~~~~~~~~~ | | | | int long long int | %lld main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lld%lld",&A,&B); | ~~~~~^~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(){long long A,B;scanf("%lld%lld",&A,&B);printf("%d",(A * B) % 1000000007);}