結果
問題 | No.388 階段 (1) |
ユーザー |
![]() |
提出日時 | 2018-05-19 20:45:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 187 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 21,888 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 14:29:02 |
合計ジャッジ時間 | 691 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
main.cpp: In function ‘int main(int, const char**)’: main.cpp:6:11: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | fscanf(stdin, "%d %d", &S, &F); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(int argc, char const *argv[]) { int S, F, cnt; fscanf(stdin, "%d %d", &S, &F); cnt = S/F + 1; fprintf(stdout, "%d\n", cnt); return 0; }