結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2021-01-30 16:10:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 438 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 63,612 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 03:32:48 |
合計ジャッジ時間 | 1,250 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
ソースコード
#include <iostream> using namespace std; int main(void){ int A, B; char x[32]; scanf("%d %d", &A, &B); for(int i = A; i <= B; i++){ if(i % 3 == 0){ printf("%d\n", i); }else{ snprintf(x, 32, "%d", i); for(int j = 0; x[j] != '\0'; j++){ if(x[j] == '3'){ printf("%d\n", i); } } } } return 0; }