結果
| 問題 |
No.374 コイン
|
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-11-21 15:46:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 433 bytes |
| コンパイル時間 | 885 ms |
| コンパイル使用メモリ | 101,908 KB |
| 最終ジャッジ日時 | 2025-02-17 22:44:45 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 WA * 6 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;
using ll = long long;
char solve(int a, int b){
if (a < b) return 'K';
else if (a >= b && a < b*3) return 'S';
else return solve(a - 3*b + 1, b);
}
int main()
{
int a, b;
cin >> a >> b;
cout << solve(a, b) << endl;
}
kpinkcat