개발자 톡

연습문제 톡 바이러스

왜 일치하지 않는 TC가 생기는지 모르겠어요ㅠㅠ (C++)

등록일
2024-04-13 18:10:05
조회수
62
작성자
rext4444

#include<iostream>




using namespace std;


int main(int argc, char** argv)

{

  int K,P,N;

  cin >> K >> P >> N;

  int result = K;

   

  for(int i = 0 ; i< N; i++){

    result *= P;

  }


  cout << result%1000000007;

  return 0;

}

#바이러스

이 카테고리의 톡 더보기