結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-03-22 14:49:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 288 bytes |
| コンパイル時間 | 1,769 ms |
| コンパイル使用メモリ | 165,760 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-24 17:35:05 |
| 合計ジャッジ時間 | 2,758 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
bool f(int a){
while(a){
if(a%10==3)return 1;
a/=10;
}
return false;
}
signed main(){
int a,b;cin>>a>>b;
for(int i=a;i<=b;i++){
if(i%3==0)cout<<i<<endl;
else if(f(i))cout<<i<<endl;
}
}
cureskol