結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-14 11:52:46 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 5,000 ms |
| + 796µs | |
| コード長 | 376 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 36,480 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-23 13:10:45 |
| 合計ジャッジ時間 | 1,512 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
//No.207 世界のなんとか
#include <stdio.h>
int jugde(int N) {
while (N > 0) {
if (N % 10 == 3) {
return 1;
}
N /= 10;
}
return 0;
}
int main()
{
int A, B;
scanf("%d %d", &A, &B);
for(int i=A; i<=B; i++){
if(i%3==0 || jugde(i)==1){
printf("%d\n", i);
}
}
return 0;
}