結果
問題 | No.388 階段 (1) |
ユーザー |
![]() |
提出日時 | 2019-08-20 11:15:20 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-06 11:49:11 |
合計ジャッジ時間 | 734 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 10 WA * 2 |
ソースコード
#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);}