mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2025-01-23 12:12:01 +00:00
D - At Most 3 (Contestant ver.)
https://atcoder.jp/contests/abc251/submissions/31671815
This commit is contained in:
parent
892ccd3d03
commit
6a7bdc6858
27
AtCoder/ABC251/D/D.cpp
Normal file
27
AtCoder/ABC251/D/D.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
#include <iostream>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
int main() {
|
||||
std::ios::sync_with_stdio(false);
|
||||
|
||||
cout << 297 << endl;
|
||||
|
||||
for (int i = 1; i <= 99; i++) {
|
||||
cout << i << ' ';
|
||||
}
|
||||
|
||||
for (int i = 100; i <= 9900; i += 100) {
|
||||
cout << i << ' ';
|
||||
}
|
||||
|
||||
for (int i = 10000; i <= 990000; i += 10000) {
|
||||
cout << i << ' ';
|
||||
}
|
||||
|
||||
cout << endl;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user