結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2020-01-18 17:14:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 2,349 ms |
コンパイル使用メモリ | 192,216 KB |
最終ジャッジ日時 | 2025-01-08 20:04:44 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) #define DEBUG int main() { int a[10], s, ans; rep(i, 10) a[i] = i+1; rep(i, 10){ cin >> s; a[s-1] = 0; } ans = 0; rep(i, 10) ans = max(a[i], ans); cout << ans << endl; }