結果
| 問題 |
No.374 コイン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-04 22:54:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 472 ms |
| コンパイル使用メモリ | 54,536 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-08 08:59:47 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 WA * 3 |
ソースコード
#include <iostream>
using namespace std;
typedef long long ll;
int main(){
ll a,b; cin>>a>>b;
ll c=0;
if(a<b){
cout<<"K"<<endl;
return 0;
} else {
a-=b;
c++;
}
ll x=a/(2*b);
c+=x;
if(c%2==1){
cout<<"S"<<endl;
} else {
cout<<"K"<<endl;
}
return 0;
}