結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2019-11-01 17:11:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 1,451 ms |
コンパイル使用メモリ | 157,780 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 22:46:19 |
合計ジャッジ時間 | 1,786 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int A, ans=0; std::cin >> A; for (auto i = 0; i < A / 2; i++) { ans += pow(10, i); if (A % 2 == 1 && A / 2 -1<= i) { ans += pow(10, i) * 6; } } std::cout << ans << std::endl; }