結果
問題 | No.388 階段 (1) |
ユーザー |
![]() |
提出日時 | 2019-08-20 11:15:44 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 11:49:42 |
合計ジャッジ時間 | 658 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdbool.h>int main(void){int stair,numofsteps,floor=1;scanf("%d %d",&stair,&numofsteps);while(stair>=numofsteps){stair-=numofsteps;floor++;}printf("%d",floor);}