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