結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
dashi_dragons
|
| 提出日時 | 2017-02-09 01:13:51 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 338 bytes |
| 記録 | |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 35,032 KB |
| 最終ジャッジ日時 | 2026-02-24 00:17:53 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <stdio.h>
unsigned long cal(unsigned long a,unsigned long b);
int main(){
unsigned long a,b;
char buf[20];
fgets(buf,20,stdin);
sscanf(buf,"%ld %ld",&a,&b);
printf("%ld\n",cal(a,b));
return 0;
}
unsigned long cal(unsigned long a,unsigned long b){
if(b % a)
return b / a + 1;
else
return b / a;
}
dashi_dragons