結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-20 11:15:44 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 775µs | |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 57 ms |
| コンパイル使用メモリ | 35,840 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-22 11:54:01 |
| 合計ジャッジ時間 | 1,134 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
funakoshi