Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma GCC optimize("O3")
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define endl '\n'
- #define fastio ios_base::sync_with_stdio(0); cin.tie(0)
- signed main()
- {
- fastio;
- /*
- 5
- 1
- 2
- 3
- 4
- 5
- */
- /*
- for(1; 2; 3)
- 1 -> baslangic
- 2 -> sert
- 3 -> addim
- */
- /*
- int n;
- cin >> n;
- for(int i = 1; i <= n; i++){
- cout << i << '\n';
- }
- */
- /*
- int n;
- cin >> n;
- for(int i = 2; i <= n; i += 2){
- cout << i << '\n';
- }
- */
- /*
- 10
- 1 4 9
- */
- /*
- int n;
- cin >> n;
- for(int i = 1; i <= n; i++){
- if(i * i <= n)
- cout << i * i << " ";
- else
- break;
- }
- */
- /*
- 10
- % 3 != 2
- 1
- 3
- 4
- 6
- 7
- 9
- 10
- */
- /*
- int n;
- cin >> n;
- for(int i = 1; i <= n; i++){
- if(i % 3 == 2)
- continue;
- cout << i << '\n';
- }
- for(1; 2; 3){
- ...
- }
- 1
- while(2){
- ...
- 3
- }
- for(int i = 1; i <= n; i++){
- cout << i << '\n';
- }
- int i = 1;
- while(i <= n){
- cout << i << '\n';
- i++;
- }
- */
- /*
- int n;
- cin >> n;
- int i = 1;
- while(i <= n){
- cout << i << " ";
- i *= 2;
- }*/
- /*
- 16
- 1 2 4 8 16
- */
- /*
- int n;
- cin >> n;
- for(int i = n; i >= 1; i--){
- if(i % 2)
- cout << i << " ";
- }
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement