結果
問題 |
No.299 蟻本が読めない
|
ユーザー |
![]() |
提出日時 | 2025-03-07 15:41:07 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 525 ms |
コンパイル使用メモリ | 24,576 KB |
実行使用メモリ | 8,480 KB |
最終ジャッジ日時 | 2025-03-07 15:41:09 |
合計ジャッジ時間 | 1,266 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] 8 | printf("追加ページ数:%d\n",(version-1)*52); | ~^ ~~~~~~~~~~~~~~ | | | | int long long int | %lld
ソースコード
#include <stdio.h> void main(void){ long long int version = 0; int input = scanf("%lld\n",&version); long long int pageNum = 316 + (version-1)*52; printf("%lld",pageNum); printf("追加ページ数:%d\n",(version-1)*52); }