結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-19 22:31:41 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 197 bytes |
| コンパイル時間 | 365 ms |
| コンパイル使用メモリ | 27,648 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-09-29 02:23:28 |
| 合計ジャッジ時間 | 881 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
ソースコード
#include<stdio.h>
int main() {
int b, s, ans;
scanf("%d,%d", &s, &b);
if (b%s==0) {
ans = b / s;
printf("%d\n", ans);
} else {
ans = b / ( s + 1 );
printf("%d\n", ans);
}
return 0;
}