結果
| 問題 |
No.374 コイン
|
| コンテスト | |
| ユーザー |
kotamanegi
|
| 提出日時 | 2016-06-04 22:58:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 708 bytes |
| コンパイル時間 | 727 ms |
| コンパイル使用メモリ | 85,084 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-08 09:08:07 |
| 合計ジャッジ時間 | 1,920 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 20 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <algorithm>
#include <utility>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
#include<map>
#include <stdlib.h>
#include <list>
#include <typeinfo>
#include <list>
#include <set>
#include <iomanip>
using namespace std;
#define MAX_MOD 1000000007
#define REP(i,n) for(int i = 0;i < n;++i)
int main() {
long long a, b;
cin >> a >> b;
a *= 4;
b *= 4;
a -= 1;
long long hoge = a / b;
if (a%b != 0) hoge++;
if (hoge % 2 == 0) {
cout << "K" << endl;
}
else {
cout << "S" << endl;
}
}
kotamanegi