結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2016-08-03 21:39:20 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 28,584 KB |
| 最終ジャッジ日時 | 2026-02-23 22:11:09 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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;
}
Haijinn