AtCoder 3.14

  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. void sol(int N, string pi) {
  5. int len = pi.length();
  6. N = 2 + N;
  7. for(int i=0; i<N; i++) {
  8. cout << pi[i];
  9. }
  10. }
  11.  
  12. int main() {
  13. string pi = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679";
  14. int N;
  15. cin >> N;
  16. sol(N, pi);
  17. return 0;
  18. }

Comments

Popular posts from this blog

SPOJ-CMG - Collecting Mango

LightOJ 1009 - Back to Underworld

LeetCode Palindrome Number