結果

提出番号 662
提出者 olphe
言語 C++
提出日時 2017-08-01 13:17:54
問題名 (47)熱血教師
結果 AC
点数 100%

テストケース

テストケース 結果 得点 実行時間 メモリ使用量
1 AC 100% 2ms 8016KB
2 AC 100% 2ms 7984KB
3 AC 100% 2ms 8016KB
4 AC 100% 2ms 8416KB
5 AC 100% 1ms 8720KB
6 AC 100% 1ms 8720KB
7 AC 100% 1ms 8352KB
8 AC 100% 2ms 8448KB
9 AC 100% 1ms 8672KB
10 AC 100% 2ms 7632KB

ソースコード

#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "math.h"
#include "utility"
#include "string"
#include "map"
#include "unordered_map"
#include "iomanip"
#include "random"

using namespace std;
const long long int MOD = 1000000007;

long long int power(long long int x, long long int n, long long int M) {
	long long int tmp = 1;

	if (n > 0) {
		tmp = power(x, n / 2, M);
		if (n % 2 == 0) tmp = (tmp*tmp) % M;
		else tmp = (((tmp*tmp) % M)*x) % M;
	}
	return tmp;
}

long long int N, M, K, Q, W, H, L, R;
long long int ans;



int main() {
	ios::sync_with_stdio(false);
	cin >> N >> M >> W;
	W += M / N + !!(M%N);
	if (W > 80)cout << "KAROSHI\n";
	else cout << "SAFE\n";
	return 0;
}