結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2021-01-30 14:49:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 525 bytes |
コンパイル時間 | 522 ms |
コンパイル使用メモリ | 68,124 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 02:30:37 |
合計ジャッジ時間 | 1,239 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <iostream> #include <math.h> using namespace std; int main(void){ // Your code here! double A; double B; scanf("%lf %lf", &A, &B); char x[32]; for(double i = A; i <= B; i++){ if(fmod(i, 3) == 0){ printf("%.0f\n", i); }else{ snprintf(x, 32, "%.0f", i); for(int j = 0; j < sizeof(x); j++){ if(x[j] == '3'){ printf("%.0f\n", i); break; } } } } }