結果
問題 |
No.46 はじめのn歩
|
ユーザー |
![]() |
提出日時 | 2020-05-11 11:08:39 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 06:54:20 |
合計ジャッジ時間 | 784 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void){ char c[21]; int a; int b; int n; int m; fgets(c, sizeof(c), stdin); a = atoi(strtok(c, " ")); b = atoi(strtok(NULL, " ")); n = b / a; m = b % a; if(m == 0){ printf("%d", n); }else{ printf("%d", n + 1); } return 0; }