結果
問題 |
No.83 最大マッチング
|
ユーザー |
![]() |
提出日時 | 2021-09-15 05:08:49 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 524 bytes |
コンパイル時間 | 1,907 ms |
コンパイル使用メモリ | 73,080 KB |
実行使用メモリ | 38,612 KB |
最終ジャッジ日時 | 2024-06-28 01:58:16 |
合計ジャッジ時間 | 3,266 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 10 |
ソースコード
import java.io.*; class Test{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int mattiN; String tmpS; mattiN=Integer.parseInt(br.readLine()); tmpS=""; for(;mattiN>0;mattiN-=2){ if(mattiN%2!=0){ tmpS.concat("7"); mattiN-=1; }else{ tmpS.concat("1"); } } System.out.println(tmpS); } }