結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-22 20:18:21 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| コンパイル時間 | 1,514 ms |
| コンパイル使用メモリ | 192,508 KB |
| 最終ジャッジ日時 | 2025-02-08 11:30:17 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int digitsum(int n) {
if (n < 10) return n;
return n/10 + digitsum(n%10);
}
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a,b;
cin >> a >> b;
for (int i = a; i <= b; i++) {
if (i % 3 == 0 or i % 10 == 3 or (i >= 30 and i < 40)) cout << i << endl;
}
return 0;
}