結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-04 09:54:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 295 bytes |
| コンパイル時間 | 604 ms |
| コンパイル使用メモリ | 67,400 KB |
| 最終ジャッジ日時 | 2025-01-15 02:29:46 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int x,y,z;
cin >> x >> y;
for(int i = x; i<=y; i++){
z = 0;
if(i%3==0||i%10==3)
z = 1;
for(int t = i;t;t/=10)
if(t%10==3)
z = 1;
if(z==1)
cout << i << endl;
}
return 0;
}