Advertisement
a53

3lan

a53
Apr 11th, 2020
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <fstream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n;
  7. ifstream f("3lan.in");
  8. f>>n;
  9. f.close();
  10. ofstream g("3lan.out");
  11. g<<7*n*(n-1)/2<<'\n';
  12. g.close();
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement