結果

問題 No.374 コイン
ユーザー malony_0
提出日時 2016-06-04 22:57:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 572 ms
コンパイル使用メモリ 58,712 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-08 09:05:25
合計ジャッジ時間 1,597 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <math.h>
using namespace std;

int main(){
  unsigned a,b;
  long double two=sqrt(2);
  long double c;
  unsigned n;

  cin >> a>>b;

  c=a/(two*b);
  n=float(c);

  if(n*n%2){
    cout << "S" <<endl;
  }
  else{
    cout << "K" <<endl;
  }

  return 0;
}
0