結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2025-03-04 15:51:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 435 ms |
コンパイル使用メモリ | 27,008 KB |
実行使用メモリ | 8,484 KB |
最終ジャッジ日時 | 2025-03-04 15:51:38 |
合計ジャッジ時間 | 1,662 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d", &n); | ~~~~~^~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int n, m; scanf("%d", &n); m = n%2; n -= m; n /= 2; if(m) printf("7"); for(;n>m;n--) printf("1"); return 0; }