結果
| 問題 |
No.666 1000000007で割るだけ
|
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2023-09-09 20:52:16 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 167 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 13:23:14 |
| 合計ジャッジ時間 | 1,037 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:18: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
7 | scanf("%ld%ld", &a, &b);
| ~~^ ~~
| | |
| | long long int *
| long int *
| %lld
main.c:7:21: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 3 has type ‘long long int *’ [-Wformat=]
7 | scanf("%ld%ld", &a, &b);
| ~~^ ~~
| | |
| | long long int *
| long int *
| %lld
main.c:8:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
8 | printf("%ld\n", ((a % 1000000007) * (b % 1000000007)) % 1000000007);
| ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| long int long long int
| %lld
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%ld%ld", &a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
long long int a, b;
scanf("%ld%ld", &a, &b);
printf("%ld\n", ((a % 1000000007) * (b % 1000000007)) % 1000000007);
return 0;
}
suppy193