-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
submit A.cpp to 'A - Probability of Participation' (code-festival-201…
…8-qualb) [C++14 (GCC 5.4.1)]
- Loading branch information
1 parent
87feef8
commit a55be37
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* File : A.cpp | ||
* Author : Kazune Takahashi | ||
* Created : 2018-10-14 20:53:31 | ||
* Powered by Visual Studio Code | ||
*/ | ||
|
||
#include <iostream> | ||
#include <iomanip> // << fixed << setprecision(xxx) | ||
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; | ||
#include <vector> | ||
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) | ||
#include <complex> | ||
#include <tuple> | ||
#include <queue> | ||
#include <stack> | ||
#include <map> // if (M.find(key) != M.end()) { } | ||
#include <set> | ||
#include <functional> | ||
#include <random> // auto rd = bind(uniform_int_distribution<int>(0, 9), mt19937(19920725)); | ||
#include <chrono> // std::chrono::system_clock::time_point start_time, end_time; | ||
// start = std::chrono::system_clock::now(); | ||
// double elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(end_time-start_time).count(); | ||
#include <cctype> | ||
#include <cassert> | ||
#include <cmath> | ||
#include <cstdio> | ||
#include <cstdlib> | ||
using namespace std; | ||
|
||
#define DEBUG 0 // change 0 -> 1 if we need debug. | ||
|
||
typedef long long ll; | ||
|
||
// const int dx[4] = {1, 0, -1, 0}; | ||
// const int dy[4] = {0, 1, 0, -1}; | ||
|
||
// const int C = 1e6+10; | ||
// const ll M = 1000000007; | ||
|
||
int main() | ||
{ | ||
int N; | ||
cin >> N; | ||
int cnt = 0; | ||
for (auto i = 1; i < 101; i++) | ||
{ | ||
if (i % N == 0) | ||
{ | ||
cnt++; | ||
} | ||
} | ||
cout << 100 - cnt << endl; | ||
} |