結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2018-04-10 17:46:20 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 730 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 20:54:56 |
合計ジャッジ時間 | 1,025 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:4:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&N); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h>void main(){int N;scanf("%d",&N);if(N&1){N>>=1;printf("7");N--;}else{N>>=1;}while(N){printf("1");N--;}printf("\n");}