結果
問題 |
No.388 階段 (1)
|
ユーザー |
![]() |
提出日時 | 2016-08-03 21:39:20 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 201 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-06 23:45:24 |
合計ジャッジ時間 | 755 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 8 WA * 4 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d%d",&s,&f); | ^~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { int s; int f; int p; int l; scanf("%d%d",&s,&f); p=s/f; l=s%f; if(l){ printf("%d",++p); }else{ printf("%d",p); } return 0; }