結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-23 13:27:35 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| 記録 | |
| コンパイル時間 | 1,144 ms |
| コンパイル使用メモリ | 145,804 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-08 04:12:58 |
| 合計ジャッジ時間 | 2,079 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}