結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2019-04-12 22:11:49 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 1,539 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 19:12:01 |
合計ジャッジ時間 | 1,105 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
// yukicoder: No.207 世界のなんとか // 2019.4.12 bal4u #include <stdio.h> #include <ctype.h> int main() { int A, B, a, s, t; scanf("%d%d", &A, &B); while (A <= B) { s = 0, a = A; while (a) { t = a % 10, a /= 10; s += t; if (t == 3) goto ok; } if (s % 3 == 0) { ok: printf("%d\n", A); } A++; } return 0; }