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