結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2023-08-17 14:58:32 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 5,000 ms |
コード長 | 464 bytes |
コンパイル時間 | 804 ms |
コンパイル使用メモリ | 102,912 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-11-26 11:56:49 |
合計ジャッジ時間 | 1,989 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;public class Program{static void Main(){string s = Console.ReadLine();string[] t = s.Split(' ');int a = int.Parse(t[0]);int b = int.Parse(t[1]);int j = 0;int k = 0;for(int i = a; i<b+1; i++){if(i%3==0){Console.WriteLine(i);}else{j = i ;k = j % 10;while(j>0 && k!=3){j = j/10;k = j%10;}if(k==3){Console.WriteLine(i);}}}}}