結果
| 問題 |
No.388 階段 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-23 13:27:35 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 1,043 ms |
| コンパイル使用メモリ | 76,928 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 20:40:59 |
| 合計ジャッジ時間 | 1,464 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 3 WA * 9 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int s, f;
cin >> s >> f;
if (s > f && s % f == 0){
cout << (s + f - 1) / f << endl;
}else if (s > f && s % f != 0){
cout << s / f << endl;
}else if (s == f){
cout << "2" << endl;
}else{
cout << "1" << endl;
}
}