結果
| 問題 |
No.1550 nullくんの町清掃 / null's Town Cleaning
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-18 10:54:50 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 109 bytes |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 24,704 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-18 10:54:52 |
| 合計ジャッジ時間 | 1,228 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
6 | printf("%d" ,n%1000000007);
| ~^ ~~~~~~~~~~~~
| | |
| int long long int
| %lld
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%lld",&n);
| ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
void main(void) {
long long int n = 0;
scanf("%lld",&n);
printf("%d" ,n%1000000007);
}
Maeda