結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-25 11:36:17 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 2,972 ms |
| コンパイル使用メモリ | 111,912 KB |
| 実行使用メモリ | 26,128 KB |
| 最終ジャッジ日時 | 2024-11-14 13:17:12 |
| 合計ジャッジ時間 | 4,237 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 11 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Test {
public static void Main(string[] args) {
string[] nums = Console.ReadLine().Split(' ');
int min = int.Parse(nums[0]); // min >= 1
int max = int.Parse(nums[1]);
for (int i = min; i <= max; i++) {
if (i % 3 == 0 || i / 10 == 3 || i % 10 == 3) {
Console.WriteLine(i);
}
}
}
}