結果
| 問題 | No.2547 Did you enjoy Chofu Festival? |
| コンテスト | |
| ユーザー |
heno239
|
| 提出日時 | 2024-02-06 15:41:00 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 2,000 ms |
| コード長 | 992 bytes |
| 記録 | |
| コンパイル時間 | 10,568 ms |
| コンパイル使用メモリ | 172,824 KB |
| 実行使用メモリ | 194,456 KB |
| 最終ジャッジ日時 | 2026-04-15 03:12:31 |
| 合計ジャッジ時間 | 8,730 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (134 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
using System.Collections;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
internal class Program
{
private const long mod = 998244353;
private const long mod17 = 1000000007;
public static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
var b=Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
int ans = 0;
for(int i=0;i<n;i++)
if (a[i] <= b[i])
ans++;
Console.WriteLine(ans);
}
public class lower_bound<T> : IComparer<T> where T : IComparable<T>
{
public int Compare(T x, T y)
{
return 0 <= x.CompareTo(y) ? 1 : -1;
}
}
public static List<int> mkar(int n, int val)
{
List<int> res = new List<int>(n);
for(int i=0;i<n;i++)res.Add(val);
return res;
}
}
heno239